
public class FirstProgram 
{
   // note that Java is case sensitive
   
   // note that by convention, classes start with an upper-case letter
   // everything else starts in lower-case
   // reserved words are in a different color
   
	public static void main(String args[])
	{
	   // the following line calls (or invokes) the method println
	   // some people call this 'sending a message'
		System.out.println("Hello out there.");
		System.out.println("Want to talk some more?");
		System.out.println("Answer y for yes and n for no.");
		
	   char answerLetter;
	   
		   
      answerLetter = SavitchIn.readLineNonwhiteChar();
	   
		if (answerLetter == 'y')
			System.out.println("Nice weather we are having.");

		System.out.println("Good-bye.");
		
		System.out.println("Press Enter key to end program.");
		String junk;
		junk = SavitchIn.readLine();

	}
}
