Absoluteloser
Posts: 2
Nickname: dirtyhuman
Registered: Nov, 2003
|
|
Re: Problem with my code
|
Posted: Nov 30, 2003 4:42 PM
|
|
While I do not have the answer, I do have something that can make your life easier. You can increment characters so they go up from A to Z using a for loop, like this:
import java.io.*;
public class MrClean { public static void main(String[] args) { int lame = 65;//the ASCII value of 'A' is 65. You should note that the value of 'a' is different from 'A' //if you wish to print the value of a letter, you can with this statement: //System.out.print("The value of 'A' is: " + (int)'A'); for(lame=0;lame<65+25;++lame){ System.out.print((char)lame); } }}
|
|