Java 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
2answers
9 views

Make a button change value of a textview

So, my friend got me to mess with android programming in android studio today. I started making a beginner application and have had some good results. But right now I am trying to get a button to ...
0
votes
0answers
6 views

PrimeFaces OneRadio + “spacebar” key

I have added radio buttons to various forms and even though I can focus on the radio buttons with "tab" I can not choose them pressing "spacebar". The arrow keys work so I can circle between the two ...
2
votes
2answers
23 views

Cannot find symbol println

I just started a new java project today, and I'm having a problem with println. Here's my main method: public static void main(String[] args) { String stringNumGuards = ...
0
votes
1answer
16 views

How to replace all matching patterns only if it does not match another pattern?

I want to replace a substring that matches a pattern, only if it does not match a different pattern. For example, in the code shown below, I want to replace all '%s' but leave ':%s' untouched. ...
0
votes
2answers
19 views

class Entry<K,V> implements Map.Entry<K,V>

I'm looking for the source code of the implementation class Entry<K,V> implements Map.Entry<K,V> of http://docs.oracle.com/javase/7/docs/api/java/util/Map.Entry.html The class ...
0
votes
0answers
4 views

When compiling on Heroku it tries to use the wrong import

When I do my git push heroku master it downloads the correct jar Download http://s3pository.heroku.com/jvm/org/elasticsearch/elasticsearch/0.90.1/elasticsearch-0.90.1.jar then throws an lot ...
1
vote
2answers
25 views

What are these 2 encryption algorithms?

I recently contracted a development team in my area to develop a Java application for me but it turns out all their Strings were encrypted and because they are encrypted twice it slows down the ...
-1
votes
1answer
10 views

TableModel removeRow() definition

This is my tableModel: public class d9tableModel extends AbstractTableModel { Connection con; Statement statement; ResultSetMetaData metadata; ResultSet resultSet; String dbName = "mydb"; String ...
1
vote
0answers
6 views

Verified ssl certificate thowing exception when java app runs

I am trying to add an verified SSL certificate to my java app. The Java app acts as a Transformation Service. It listens on a port at a specific URL. It Transforms the body of the request by string ...
0
votes
3answers
37 views

Object update inside ArrayList

How can I get the second object from an arrayList of type (class)Person and apply a method to that particular object? ArrayList<Person> person = new ArrayList<Person>(); For ex. I have ...
0
votes
1answer
12 views

Can't find the recorded file after I've stopped recording

I'm making a simple app that records sound as long as the imagebutton is touched and held, but after I'm done recording, I can't find the file on my android device. Code: public class MainActivity ...
0
votes
0answers
14 views

Is there a way to organize the source tree in Eclipse Java project?

I'm not an expert in Java Eclipse development but have created a few projects in it. In the past the source tree was pretty small maybe less than 10 source files, but this is the first time with a ...
0
votes
0answers
3 views

Client JAX-WS RI duplicating requests

We have a JAX-WS RI client -it's initialised in a stateless bean and reused-, sometimes when we invoke it, it make many duplicate http requests to the service internally. This is a glance to the ...
0
votes
1answer
15 views

Android development Linking XML button to Java

I am new to android development, I am basically trying to create a very basic app which will enable the user to switch on their wifi. My XML file: <RelativeLayout ...
1
vote
1answer
36 views

Java - Bypassing polymorphism?

Lets say I have a class like this: public class Base { public void foo() { System.out.println("base foo"); } public Base() { foo(); } } and I have a ...

1 2 3 4 5 30256
15 30 50 per page