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
6 views
Programming conventions in java
I have a simple question about one aspect about so called programming conventions in java.
Simply - if I pass a local variable in one method to a another (helper) method - should I keep the name of ...
0
votes
1answer
16 views
Android/Java - Communication from classes return java.lang.nullpointerexception
I have created in an Android project the main class that extend the activity, and another one that extend the main class. I want to use in the main class a method declared in the second class. But i'm ...
0
votes
0answers
35 views
Set a color to a String Java
I have this code:
public Collection test {
String valRegistre;
...
boolean a = testRegistre(valRecupReceiveData);
if(a == true) {
valRegistre = "Resultat du TEST OK";}
else ...
0
votes
0answers
11 views
How to differentitae between records while parsing xml using Xpath
I have an xml like this
<Processed>
<address>
<buildingnumber> 29 </buildingnumber>
<street> South Lasalle Street</street>
...
0
votes
0answers
9 views
Updating a table with Servlet/JSP/MYSQL
Im having some little troubles with the UPDATE servlet.
Im trying to update my db but its just not happening. I'm new to this chapter of JEE.
**NB: I'm just having trouble with the UpdateServlet ...
0
votes
0answers
17 views
I have a troble in getting content of a page in java
I'm trying to get content of this url. I'm using the jsoup library. It gives me the content of home page as you can see the image but not giving the content I want for i.e. tab on this home page ...
0
votes
1answer
5 views
apply language translation to android applicaiton
I want to apply language translator to my application. in that json response data also being converted to selected language. for that localization is not useful for me because it only converts what i ...
1
vote
1answer
15 views
JVM Attach API Virtual Machine. What does it mean to “Attach”?
I don't quite understand what it means to "attach" to another virtual machine via the attach api. I've read that every java program runs in its own virtual machine (see here). So what exactly happens ...
0
votes
1answer
15 views
Spring MVC controller return HTML
I am having an issue trying when trying to return HTML to my Spring MVC controller.
It looks like this:
@RequestMapping(value = QUESTION_GROUP_CREATE_URL, method = RequestMethod.POST)
public
...
0
votes
1answer
6 views
Cloak “Spring-WS” in validation errors
When making a SOAP request and validation fails, the response I'm getting back is:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
...
0
votes
1answer
26 views
Looping through a 3x3 cube
I am coding a mod for minecraft, and was confronted by a confusing math problem.
I want to find the ID of all blocks around a center block.
To do this I wanted to loop through a 3x3 square of blocks ...
1
vote
0answers
8 views
Logback defaulting to debug mode for some third party libraries
We use slf4j and logback for logging in our java ee web application. Recently in order to move these libraries to a common location in the glassfish app server (to glassfish\lib directory ...
1
vote
1answer
18 views
Show an image stored on internal storage
I'm developing an Android application and I do this to save a bitmap into internal storage:
protected void onPostExecute(Bitmap profilePicture)
{
FileOutputStream fOut = null;
...
0
votes
1answer
9 views
LDAP Authentication with Java, explanation needed
if you could please explain to me one piece of the following code that I don't quite understand I would be grateful:
What does "(&(cn=*)({0}={1}))" mean in the filter field? I know that cn means ...
0
votes
3answers
27 views
Not working I/O method
I'm pretty new to JAVA, so I do not really see what I am doing wrong within the following method:
public void writeWNDFile(){
String strFilePath = "C:/Users/fperrone/Desktop/ddd.txt";
...