Tagged Questions
Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.
0
votes
0answers
8 views
How to look for subset in a collection for a collection using lambdaj?
I have a list
Class A
{
int id;
String name;
String dept;
String x;
String y;
}
List<A> multipleA = new Arraylist<A>();
Class B
{
int id;
String dept;
...
0
votes
0answers
3 views
Refresh Navigation View in eclipse application
I want to Refresh Navigation View in eclipse application. The project explorer in the eclipse application does not show the projects , untill it is refreshed or right clicked on it. How to refresh it ...
0
votes
0answers
10 views
'e24PaymentPipe' cannot be resolved to payment type
I'm using Tomcat 6 to run a payment script written in Java. This involves running a basic .jsp file and importing some .class files that then redirect the user to the payment platform. Easy.
The ...
0
votes
3answers
35 views
How do I pass variables between methods in java?
In the main method of my program I have a bunch of scanner input which I have passed into various methods using parameters.
In those various methods I have done calculations, creating new variables.
...
2
votes
0answers
19 views
Java OutOfMemoryError when allocating byte[] within max heap
I'm trying to figure out why I am getting an OOM error even though the byte array I am initializing plus the currently used memory is less than the max heap size (1000MB).
Right before the array is ...
0
votes
1answer
27 views
Shifting bit values
I have recently started learning java of my own back and I am having trouble with one part in particular. Today I read up on shifting bit values and I was wondering if what I am doing is correct?
I ...
0
votes
0answers
10 views
Regex NOT Operation
I have condition where I have to select anything which is not part of span tag.
Input -
the <span class='ptc-highlightedSearchResult'>PISTON</span> has their <span ...
0
votes
0answers
8 views
How to get content type from blobstore by blobkey?
I get blobkey from datastore.
Now I want to use this blobkey to get content type of blob in blobstore.
How to do it?
0
votes
2answers
12 views
JPA Query Exception to fetch data with join
Dao class
@Query("select pt from com.ctpm.rrh.basket.model.user.User as u inner join u.userPaymentTransaction as pt where u = ?")
List<UserPaymentTransaction> ...
0
votes
1answer
16 views
How to make multiple JTextFields write to one file
I have a project involving a recipe book that saves info like ingredients, utilities, etc. and i need to make the fields that those details are entered in, save that text to a file. Each field is a ...
-4
votes
2answers
33 views
How to search database within less time
I have near about 10 lakh (1 lakh = 100,000, so 1 million) entries in my database table and
I need to use some logic by which I can search within minimum time,
is there any algorithms or logic by ...
0
votes
2answers
21 views
Concatenating JSTL
I have a HashMap in the controller:
HashMap<String, ArrayList<String> map = new HashMap<String, ArrayList<String>();
In the JSP page i want to access this through something like ...
-3
votes
2answers
46 views
Method Name in Java [on hold]
I need to print from which class the method is called and from which line the method is,how to get the method name,line number of calling class in java and in android?
0
votes
0answers
14 views
Robospice: Sending JSON data inside HTTP request body
I need to send a POST HTTP request using Robospice for Android that will have data in the following format:
Content-Type: application/json
{'var1':'var1val','telNumber':'var2val'}
There ...
0
votes
5answers
22 views
“Int cannot be Dereferenced” in Java. Hope for assistance
I'm fairly new to Java and I'm using BlueJ. I keep getting this "Int cannot be dereferenced" error when trying to compile and I'm not sure what the problem is. The error is specifically happening in ...