pharaoh fortune slot
ExamNotes.net
Welcome, Guest. Please login or register.
November 19, 2017, 01:08:03 AM

Login with username, password and session length
* Home Help Search Login Register
  Show Posts
Pages: [1]
1  General discussions / Programming Forum / I need help with my logic. on: October 16, 2006, 01:39:41 PM
{  //remove
System.out.println();
System.out.println("Enter all of the exam scores.");
sum=0;
int NumberOfA = 0;
int NumberOfB = 0;
int NumberOfC = 0;
int NumberOfD = 0;
int NumberOfF = 0;
next = keyboard.nextInt();
score = keyboard.nextInt();
grade = keyboard.next();

}//remove




Remove the curly braces which are indicated above and your problem will be solved.
these curly braces are making your veriables local so they are not accessible out side the curly braces.
for further support visit
http://www.braindumpindia.com
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!