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
2 views
Failed to import new Gradle project: Could not fetch model of type 'IdeaProject'
when i started android studio i get this error:
Failed to import new Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution ...
-2
votes
0answers
6 views
Eclipse Juno 4.2.2 crash
Whenever I hover over any code with information a window comes up with Java (TM) Platform binary has stopped working error and eclipse crashes. Plus the outline is not working either.
0
votes
1answer
28 views
Java case-insensitive regex matching doesn't work with letter Ñ
Consider this program:
import java.util.regex.Pattern;
public class xx {
/*
* Ñ
* LATIN CAPITAL LETTER N WITH TILDE
* Unicode: U+00D1, UTF-8: C3 91
*/
public static ...
0
votes
1answer
12 views
Displaying correct information in JPanel
I'm having trouble updating JPanels with new data. I'm working on a game, the basic concept of what I'm trying to do is load a player and display the items he holds in a JPanel (set out in a box ...
0
votes
0answers
10 views
Define regular Time instances, get differences between them and currrent Time on Android
There're some objects that each one has certain constant times repeat daily (i.e. 12:30PM, 14, 16, 18 ...); I want to calculate differences between System current time and each time spot to find the ...
1
vote
1answer
16 views
finding an available machine for RDP out of many
I have a few machines running Windows 7 that has access from within the LAN using MSTSC (Remote desktop)
I want to make a web app that will show which of the machines is available at the moment for ...
0
votes
1answer
15 views
How to check Android EditText integer value?
I'm trying to make an app that would calculate the income tax of a given person. There is an EditText field where the user must point out his monthly wage and then it's being calculated in the ...
0
votes
2answers
44 views
Issue when using iterative loops inside recursive methods
Hey I was making a method that uses recursion inside for loops, and for some reason the for loops never iterated... Here is an example of what i was doing but with simpler code. The code never ...
0
votes
0answers
33 views
Can I Map Enum Keys to Enum Values?
I have 2 enums (Modules, UniqueChars)
Modules has all the Keys
UniqueChars has all the values.
How can I map these using HashMap or EnumMap?
Firstly, Is it possible to read the keys & values ...
0
votes
0answers
29 views
How do I actually bind a Java service to a URL?
I've written web services for a while using javax.ws.rs. But every time I've used them, I've had the server I was deploying them to (Tomcat 6.0) integrated directly with my IDE, so setting them up ...
0
votes
1answer
13 views
hadoop class not found exception even though its there in hadoop classpath
Just installed hadoop and have a simple program below which I found online to display the configurations
import java.util.*;
import org.apache.hadoop.conf.*;
class printHadoop {
public static ...
0
votes
0answers
26 views
java invalidKeyException
Hi all i get this error when i am trying to copy and paste a ssh2 public key that i have generated.
here is the full stack trace of the error:
java.security.spec.InvalidKeySpecException: ...
0
votes
2answers
43 views
How to change boolean code to int code in java
I am trying to change some code in my admin panel because of some recent changes in my protocols. What I am trying to do is change the code from boolean to int. I will state now I am a complete novice ...
0
votes
0answers
6 views
How can I do mapping from AggregationOutput to a POJO?
For a complicated query I descended to MongoDB Java API (using Spring-data for most of my stuff) and I wrote a aggregate statement using BasicDBObjects.
DBCollection users = ...
1
vote
1answer
17 views
AsyncTask onProgressUpdate(Double… value)
I am using the AsyncTask to compute a double and then I want to publish this double value
private class CalcTask extends AsyncTask<Void, Double, Void>{
@Override
protected Void ...