Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.
0
votes
0answers
3 views
How to read local text file and put data in an array to prepare playlist in android
As you can see that in this player i want make an array which can fetch list of video paths from a locally stored text file in the internal memory of the device..as u can see in the below code that i ...
-1
votes
0answers
6 views
Minesweeper - Online Judge “Wrong answer” although it works on Eclipse
UVA problem no:10189 - Minesweeper
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1130
Here is my solution:
import java.util.Scanner;
...
0
votes
0answers
9 views
ActionListener: Disabling Buttons
I am currently working on a Java class that produces a simple JFrame/JButton layout of Tic-Tac-Toe. Implementing ActionListener, I intended on having the selected JButton set its title to "X" or "O" ...
0
votes
0answers
2 views
ServletResponse.flushBuffer — does it block until my response is delivered?
I am using Tomcat. The documentation for ServletResponse.flushBuffer says, "Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, ...
-7
votes
0answers
18 views
How to send files to pc through wifi programaticall from android phone [closed]
One and all .
I need a code to send files to personnel computer through wi-fi from my phone ..
in android please help me to complete my app.
0
votes
1answer
10 views
Swing TextArea function setLineWrap making execution slow
I am making a GUI app in which on click of button we read a binary file and display the data in a TextArea (Data is 327680 bytes).
Now if I use textArea.setLine(true) then it slows down the ...
2
votes
1answer
18 views
What happens when you operate bytes bitwise?
Take a look at this code:
byte a = -124;
System.out.println(a);
System.out.println((a & 0xFF));
It outputs:
-124
132
It's very, very surprising to me. After all, byte contains only 8 bits, ...
1
vote
0answers
5 views
Generating Eclipse AXIS Web Service Get Exception: java.lang.reflect.InvocationTargetException Message: java.lang.reflect.InvocationTargetException
I am developing Java AXIS Web Services using Eclipse. When I create a new Dynamic Web Project and sometimes when I right click on my class -> Web Serves -> Create Web Serves
It creates everything ...
0
votes
0answers
10 views
How do i dump errors reported by logger.error into a file
I have a selenium script and I need to write the failures to a log file. i am using the logger.info() method to dump the required information into my file but i need to maintain a seperate errorlog ...
0
votes
0answers
15 views
How to pass a String from a Java server class to an Android Activity?
So basically, I have an Android phone that acts as the client and sends a String to a Java server, which in turn passes it to an Android emulator, which I will use to display the results from the ...
0
votes
1answer
8 views
Jenkins - check Git before every builds
I am currently setting up a Continuous Integration system with Jenkins, and I came across a problem :
Almost every project depends on others projects. So, in order to perform daily builds, I use the ...
4
votes
3answers
36 views
Static method without a name
In an Android example class theres this method:
static {
addItem(...);
}
When I reference the class, the items are indeed added. I never saw a method like this, a. how is this called ...
0
votes
1answer
7 views
Why size of Jtext area is Changing on selectig other componenets on Jframe form
I am having three radio buttons (rd_7inch, rd_9inch, and rd_10inch) on selection i am changing size of text box
public void setsize()
{
if(rd_7inch.isSelected())
{ ...
0
votes
0answers
4 views
Implement SIP instant messaging framework
I want to implement an instant messaging framework working on SIP.
I have SIP clients and an element that will get all the messages from the clients, and will handle them and forward them to other sip ...
0
votes
8answers
32 views
How to split a string by “ | ” in split method of String class in Java
I would like to split a String by " | " in Java. I found split method of String class and it expects a regex expression for split delimeter but I don't know how to form a regex expression for " | ".
...