Saving and numbering individual letters in a field.
Posted on 2004-09-08
I have this homework where I have to input a license plate which is supposedly three letters followed by three numbers, I have to store the three letters and then convert them to their ASC2 values, butIi don't know how to input it because my workbook only has readline, readtolken, readInt, and readBoolean, and so I don't know how to individually store the letters so I can convert them because in the end have to add those numbers up, basically I am using the consoleIO class.
Here's what I have written, but it doesn't work at all:
public class CarRentalCh4
public static void main(String args)
ConsoleIO console=new ConsoleIO();
char letter1, letter2, letter3;
System.out.print("Enter license plate ");
This assignment is due tommorow, so big points.