So I have to write this program and I have no idea what I'm doing. Here are my requirements:
Create a program that stores the characters in an array at compile time. The program should display (from the array), on separate lines:
1. The entire alphabet alphabetized.
2. The entire alphabet in reverse order.
3. The first letter of the alphabet
4. The first ten characters of the alphabet.
5. The last five characters of the alphabet
6. The tenth letter of the alphabet.
Here is what I have so far
import java.io.*;
import java.util.*;
public class Alphabet {
public static char [] theAlphabet = new char [26];
public static void main(String[] args) {
creation ();
System.out.println("The alphabet: ");
print (0,25)
System.out.println("The alphabet in reverse: ");
print (25,0)
System.out.println("First letter of the alphabet: ");
print (0)
System.out.println("First ten letters of the alphabet: ");
print (0,9)
System.out.println("Last five letters of the alphabet: ");
print (21,25)
System.out.println("Tenth letter of the alphabet: ");
print (9)
char ch;
for( ch = 'a' ; ch <= 'z' ; ch++ )
System.out.println(ch);
}
Please help me finish this. I have no idea what I'm doing