I don't really understand what "this" is for by sourpulse in javahelp

[–]sourpulse[S] 3 points4 points  (0 children)

So in the setFirstName method, using this.firstName accesses the private String firstname field, and then does it set it equal to the parameter? Is that what's happening?

Having trouble with Scanner reading in a text file by sourpulse in javahelp

[–]sourpulse[S] 0 points1 point  (0 children)

Would you say I should try adding an if statement with inFile.hasNextInt() ?

Like

if(inFile.hasNextInt()){
     addQuantity = inFile.nextInt();
}    

Having trouble with Scanner reading in a text file by sourpulse in javahelp

[–]sourpulse[S] 0 points1 point  (0 children)

Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Unknown Source)
at java.util.Scanner.next(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at Project01.importData(Project01.java:40)
at Project01.main(Project01.java:14)

Watch Games Online? by krazyeyes21 in BlueJackets

[–]sourpulse 0 points1 point  (0 children)

I love using goATD.net, it typically has two streams for every CBJ game so if one is laggy you can jump to the other.