I am having some trouble with my programming fundamentals class lab. I am getting errors and i can't figure out what is wrong. I'm not sure what the proper etiquette is for posting code so i am sorry if this goes against the proper way of doing it.
MovieGuide.java:24: error: cannot find symbol
numStarsString = Input.nextLine();
^
symbol: variable Input
location: class MovieGuide
MovieGuide.java:34: error: cannot find symbol
numStarsString = input.nextLine();
^
symbol: variable input
location: class MovieGuide
2 errors
Error: Could not find or load main class MovieGuide
import java.util.Scanner; public class MovieGuide { public static void main(String args[]) { Scanner s = new Scanner(System.in); // Declare and initialize variables. double numStars; // star rating. String numStarsString; // string version of star rating double averageStars; // average star rating. double totalStars = 0; // total of star ratings. int numPatrons = 0; // keep track of number of patrons // This is the work done in the housekeeping() method // Get input. System.out.println("Enter the number of stars: "); numStarsString = Input.nextLine(); I get an error on this line, Cannot find symbol. // This is the work done in the detailLoop() method numStars = Double.parseDouble(numStarsString); // Convert to double. // Write while loop here while(numStars >=0 && numStars <= 4){ totalStars = totalStars + numStars; numPatrons++; System.out.println("Enter the number of stars: "); numStarsString = input.nextLine(); I get the same error on this line. numStars = Double.parseDouble(numStarsString); // This is the work done in the detailLoop() method // Convert to double. numStars = Double.parseDouble(numStarsString); } // This is the work done in the endOfJob() method // Calculate average star rating averageStars = totalStars / numPatrons; System.out.println("Average Star Value: " + averageStars); System.exit(0); } // End of main() method. } // End of MovieGuide class.[COLOR="Silver"] [/COLOR]
--- Update ---
Oh wow, first time posting and it looked like it was going to have the spaces in there. Sorry