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
4 views
GMC string instead of boolean
I've received message from GCM but i got string instead of boolean. It seems problem is with my JSON array. I get warning message:
04-17 00:41:04.058: W/Bundle(6702): Key alarm expected Boolean but ...
0
votes
1answer
17 views
How to print out one random String from an array
Hi I was wondering how I can print out one random value of an array instead of two of them. Here is my code:
public static void main(String args[])
{
String[] currentRoom;
String[][] rooms = ...
-1
votes
3answers
34 views
Syntax error, insert “}” to complete Statement. issue
This is one of my app activities , i realy try to complete statment succesfully but i cant , it rise red line error under vi.setTag(holder);} exactly under }
in the following code :
public class ...
0
votes
0answers
7 views
Client-Host libraries/frameworks suggestions for an application
Currently i am building a application for my university project and I'd like if someone could give me some suggestions on which client-host tool to use for comunication (most simple and easy to ...
0
votes
1answer
23 views
Why isn't there guava Objects.equals(Object) to primitive types?
Why isn't there a Objects.equal receiving as an argument each primitive type?
I know you can box the value via #valueOf or let each primitive be autoboxed, but don't you lose performance doing that? ...
0
votes
3answers
14 views
How to create a combo box actionListener?
How do i create a combo box action listener?
I have the folloawing so far:
myCombo = new JComboBox();
myCombo.addActionListener();
///I am not sure how to proceed, it seems that it is different from ...
-4
votes
1answer
29 views
Common Time Stamp
I have a quiz, where the question lies as:
Shortly after data was collected for the radar task, Mr. Salmon was asked to write code expanding this experiment to involve a device called an eye-tracker ...
0
votes
4answers
24 views
quadratic formula with scanner inputs
Okay so I am a complete Java noob, and I'm trying to create a program for class that runs a quadratic equation using scanner inputs. So far what I've got is this:
import java.util.*;
public class ...
0
votes
0answers
19 views
Compare Images in Android
I am creating Tic Tac Toe game.This is the click event- when a button is clicked set background image ==num1
public void onClick(View event) {
// TODO Auto-generated method stub
if(btn1 ...
0
votes
0answers
19 views
Unable to find explicit activity class
I just began android development, and I'm stuck on this issue. When the application runs, I'm greeted with the following:
http://imgur.com/yIFxvd4
(In case the link is broken or the image can't be ...
0
votes
0answers
13 views
Android ListView does not display information from multiple ArrayLists
I've been studying Android ListViews recently and I'm having some issues. I looked at a few tutorials and got the most basic ListViews working just fine. But now I would like to make a ListView that ...
0
votes
0answers
16 views
Android, how to improve performance on a network area with sockets?
I'm developing a real time game to learn Android. I'm using Tomcat and Webservices to exchange some data when the game starts. I'm using sockets. Both Android devices can exchange information through ...
0
votes
0answers
4 views
Java + Passenger + Jasper-Rails
Dear Stackoverflow colleagues,
Im trying to use Jasper-Rails plugin to run my Jasper Report over Ruby On Rails 3, but when i run my App in Production Environment i got the error:
can't create Java ...
2
votes
3answers
30 views
Trace code execution?
One of my programs is stopping at some position (no exception, also seems not to be crashed), but I don't know that position. Instead of setting up a breakpoint (which means you already need to know ...
0
votes
1answer
10 views
Swing: Custom LaF for JTabbedPane component subclass
How can I subclass a JTabbedPane and give each instance of my subclass a Look-and-Feel that is different from the default LaF? I still want access to the default JTabbedPanel, so simply overriding the ...