Search:

Type: Posts; User: 3therk1ll

Search: Search took 0.13 seconds.

  1. Replies
    2
    Views
    133

    File checker not working

    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...
  2. Replies
    8
    Views
    538

    Re: Integer.parseInt problem

    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(...
  3. Replies
    8
    Views
    538

    Re: Integer.parseInt problem

    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(...
  4. Replies
    8
    Views
    538

    Re: Integer.parseInt problem

    I thought the point of it was to parse a string for integers.
  5. Replies
    8
    Views
    538

    Re: Integer.parseInt problem

    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...
  6. Replies
    8
    Views
    538

    Integer.parseInt problem

    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...
  7. Replies
    4
    Views
    389

    Re: Main Class not loading

    Got it now, I had the wrong version or type of Java installed *facepalm*, thanks mate.
  8. Replies
    4
    Views
    389

    Re: Main Class not loading

    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...
  9. Replies
    4
    Views
    389

    Main Class not loading

    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...
Results 1 to 9 of 9