ah, i get it.. so the number is being accepted as a string and parsed into an integer. The string is forcing it to go straight to the exception?
It works with .nextInt();
Thanks!
Type: Posts; User: melki0795
ah, i get it.. so the number is being accepted as a string and parsed into an integer. The string is forcing it to go straight to the exception?
It works with .nextInt();
Thanks!
ok, i did that. no idea whats its on about though
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at...
boolean markCheck = true;
do{
try{
for (int i = 0; i <= amountAssignment-1; i++ ) {
System.out.print("Homework Mark for Assignment " +(i+1) + ": ");
...