Hey guys, writing something simple to see if a file exists and print a string if it does, not sure what is wrong with it though.
import java.util.*;
/**
*
* @author root
*/
public...
Type: Posts; User: 3therk1ll
Hey guys, writing something simple to see if a file exists and print a string if it does, not sure what is wrong with it though.
import java.util.*;
/**
*
* @author root
*/
public...
Urgh, I'm a dick, I got it now, cheers for the help, I wasn't declaring turning the parsed string into another variable and declaring it as an int.
String number1 = JOptionPane.showInputDialog(...
Urgh, I'm a dick, I got it now, cheers for the help, I wasn't declaring turning the parsed string into another variable and declaring it as an int.
String number1 = JOptionPane.showInputDialog(...
I thought the point of it was to parse a string for integers.
Thanks for the reply dude.
I am using the string message because I thought the idea was to read a string and filter out the integers from that string.
Not using catch because I'm just working my...
Hi guys, working through the Deitel Java book and am stumped on one of the cases they give, with no examples, I've tried Googling around but with no success.
The program is just a simple GUI to...
Got it now, I had the wrong version or type of Java installed *facepalm*, thanks mate.
Still the same:
C:\Program Files (x86)\Java\jre7\bin>java C:\Java\Hello.java
Error: Could not find or load main class C:\Java\Hello.java
public class Hello
{
public static void...
Hey guys, literally just started trying to learn Java and already running into trouble-
Version Info-
C:\Program Files (x86)\Java\jre7\bin>java -version
java version "1.7.0_21"
Java(TM) SE...