Java, not to be confused with JavaScript, is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).

learn more… | top users | synonyms (4) | java jobs

0
votes
0answers
7 views

Why is there always isEmpty whereas I use !isEmpty 99% of the time

This question has bogged me quite a while. During programming there is regularly the question whether there is something in an object or not. For this reason was the isEmpty method invented. Great, ...
0
votes
0answers
7 views

Steganography Lsb information hold capacity

I know that using LSB means that u can store messages at around 12% of the image carrier size. I made a java program that splits a message into n fragments and fills the image carrier with these ...
1
vote
1answer
11 views

How to handle internationalization of names in Hiberante and db schema

I saw a few questions in stackoverflow, but they all refer to old answers (from 2004) and using hibernate xml mappings. I am writing an API in Java, which will return products which are stored in the ...
0
votes
0answers
8 views

Excel file access from internal storage android app

I want to be able to copy an excel file from my android app res\raw folder to the client phone's internal storage, and be able to retrieve the data from the excel file and update the excel file in the ...
1
vote
2answers
38 views

null behavior in function overloading with polymorphism

I have the following code public class HelloWorld { public void printData (Test t) { System.out.println("Reached 1"); } public void printData(NewTest t) { ...
0
votes
2answers
14 views

How to run linux command using java swing using onclick event?

I want to create a application which provies GUI using a java swing but in that application i need to use terminal to execute the commands of linux ubuntu os like "sudo apt-get update" and other so ...
0
votes
3answers
51 views

JAVA for creating all possible combination of words

I am trying to get all the possible combinations of words input by user. Such as words input like aa, bb, cc should give aa bb cc aabb aacc bbaa bbcc ccaa ccbb aabbcc aaccbb bbaacc bbccaa ccbbaa ...
0
votes
1answer
7 views

Is there an easy way to investigate if AccessController.doPrivileged() is really needed?

I have this code that attaches a JavaServer to the RMIRegistry, which is done in a PrivilegedAction //start javaengineserver AccessController.doPrivileged(new PrivilegedAction() ...
0
votes
0answers
8 views

iText formatting tables

I'm generating a PDF document (for those who have seen his before, yes still) using the iText library. Compliments to Bruno Lowagie; I've found it to be a really great API! However, part of my task ...
0
votes
2answers
12 views

Set local bind address for client socket in java

I have multiple NIC installed on server. Is it possible to set default local bind address for created client sockets in JAVA? It is possible to do it programmatically by: new Socket(InetAddress ...
0
votes
0answers
11 views

Spring Servlet HTTP Post request re-send

I'm having a bit of an design and coding problem. Step1: I receive an http post request which i save into my db. 2: then i need to resend the the same request. 3: return the form of the external ...
0
votes
1answer
24 views

Convert from txt to xml

I have a java code to convert txt file to xml file: (it works) Pattern p = Pattern.compile(".+@.+\\.[a-z]+"); BufferedReader in = new BufferedReader(new FileReader(fromFile)); FileOutputStream fos = ...
-4
votes
0answers
35 views

How to closes a program using keyboard [on hold]

I have to close a program when X is pressed, but I don't find how to do it. I've been looking on here and I haven't found how to do it. Anyone have any ideas?
0
votes
3answers
34 views

what to use for automatic signout of an App after 30 min in android

I want my application to Automatically signout after 30 minutes.so i am confused with lots of option i have. 1.handlers but i think if i use handler it won't calculate the display sleep time and i ...
0
votes
0answers
17 views

How to read raw text from pdf file using java

I am using pdf box parser to read data from pdf file using java.It will read all the content from pdf file. Below is my sample code to read data from pdf file and store it into text file. Sample ...

1 2 3 4 5 30621
15 30 50 per page