Lab05d - test.setChar(letter out.println(test out.print"Enter a letter" letter = keyboard.next.charAt(0 test.setChar(letter

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//© A+ Computer Science - www.apluscompsci.com //Name - //Date - //Lab - import static java.lang.System.*; import java.util.Scanner; public class Lab05d { public static void main ( String[] args ) { Scanner keyboard = new Scanner(System.in); out.print("Enter a letter :: "); char letter = keyboard.next().charAt(0); CharacterAnalyzer test = new CharacterAnalyzer(letter); out.println(test); out.print("Enter a letter :: "); letter = keyboard.next().charAt(0);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: test.setChar(letter); out.println(test); out.print("Enter a letter :: "); letter = keyboard.next().charAt(0); test.setChar(letter); out.println(test); out.print("Enter a letter :: "); letter = keyboard.next().charAt(0); test.setChar(letter); out.println(test); out.print("Enter a letter :: "); letter = keyboard.next().charAt(0); test.setChar(letter); out.println(test); } }...
View Full Document

This note was uploaded on 11/11/2011 for the course C++ comp122 taught by Professor N/a during the Spring '07 term at Cy-Fair College.

Ask a homework question - tutors are online