Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
0answers
8 views
Java, Parser only parses data once. Need to parse to eof
I have a GB file of binary data.
In this file are many sections of data.
Each section of data is wrapped in crap that I don't want.
In the crap that I don't want there are constant indicator ...
0
votes
0answers
6 views
How to check a DateTime is an occurence of recurring event using Joda Time?
I've a DateTime that represent the beginning of a recurring event. A Days (daily period) will represent the recurring period. I assume that this recurring event will never stop.
from = "2013-06-27" ...
0
votes
0answers
12 views
Android File not writing
private void writeResults() {
// TODO Auto-generated method stub
File file = new File(getFilesDir(), "history.txt");
try {
file.createNewFile();
FileWriter filewriter = new ...
0
votes
2answers
16 views
Reading Integer user input in DataInputStream in java?
I am trying to get input from user using DataInputStream. But this displays some junk integer value instead of the given value
My code is:
import java.io.*;
public class Sequence {
public static ...
3
votes
0answers
26 views
Is there a C++ equivalent of java.util.concurrent.locks.ReentrantReadWriteLock?
I would like to control access to getters and setters for a bunch of data classes to make them safely accessible from multiple threads simultaneously. I have done this in Java before with ...
0
votes
0answers
28 views
how does this regex work in Java?
I have the following piece of code that splits the string and returns an array of strings.
public static void main(String[] args) {
String name="what is going on";
String[] ary = ...
0
votes
0answers
10 views
How do I get the IP address of only my wireless card via Java?
So I have the following code:
String machineIP = InetAddress.getLocalHost().getHostAddress();
However, when I have multiple drivers connected (e.g. Hamachi, Ethernet cable attached, etc.) Java ...
0
votes
0answers
11 views
Save Image from ImageView
I tried to save an image from an ImageView into the gallery. I tried it like this:
Bitmap bitmap = imageView.getDrawingCache();
MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, "" ...
0
votes
3answers
17 views
Day of month - java calendar
I want get, how much month have got days. I have got this code:
Calendar cal = Calendar.getInstance();
cal.set(2013, 1, 1);
System.out.println(cal.getActualMaximum(cal.DAY_OF_MONTH));
...
0
votes
2answers
9 views
What is unidirectional many-to-many association?
As far as I understand, Many to Many association between 2 entities A and B mean that A can have more than one values in B and B can have more than one values in A.
If that is correct what does ...
0
votes
0answers
17 views
Can we save jpeg/png images in java collection?
I wanted to know can we save images with a jpeg or a png format in a Java Collection like Maps/HashMap/TreeMap/ArrayList etc...?
0
votes
0answers
6 views
Selenium:Access to 'file:///C://Users//DELL//Desktop//Project%20UI//FastHome.html' from script denied
When I tried to open the UI page of my desktop using selenium to test I am getting the following error ...........
I am Using the firefox 21.0.
How to overcome this error??????
...
0
votes
0answers
12 views
Parsing strings to mongodb query documents with operators in java
In a project I'm working on, at one point I read a query to mongodb from a string. I've been using com.mongodb.util.JSON.parse(querystring) to read the query, which worked fine until I started ...
-4
votes
1answer
53 views
Passing an Object to a method and returning a list of Objects
Friends
I have the following class
public class CallFlowObject {
private String id;
private String description;
private String initialStepId;
private ...
0
votes
1answer
64 views
How to iterate over generic Map
I want to create a clone() method for the generic class containing generic map, but I'm stuck on iterating over the entryset of the map. Here's the important part:
private Map<Object, ...