import javax.swing.JOptionPane;

public class ASCII//First 127 characters that all IBM computers share
{


	public static void main ( String [] args )
	{
		
		String input;
			
		int number = 0;

		char character;//char a single character, single character is inside ' '(single quotes)

		input = JOptionPane.showInputDialog( null, "\n Please type in a single character");
		
		character = input.charAt(0);//character at position
			
		//number = Integer.parseInt(input);	
		
		JOptionPane.showMessageDialog( null,"character " + character + " = ASCII value = " + (int)character);
	    //converting a character to an ASCII value from 0-127
		 for(i=0, i<128, i++)
		 {
		   
			
		 
		input = JOptionPane.showInputDialog( null, "\n Please type in a number on the ASCII chart less than 128");

		number = Integer.parseInt(input);
		
		JOptionPane.showMessageDialog( null, "ASCII #" + number + " = character " + (char)number);


		input = JOptionPane.showInputDialog( null, "\n Please type in any uppercase letter");
		
		character = input.charAt(0);

		number = (int)character + 32;//if u add 32 to an upper case letter it is the same lower case letter
		
		character = (char)number;
		
		JOptionPane.showMessageDialog( null,"character now lowercase = " + character );
			
		

	}//end main

}//end class
