Program:
import java.util.Scanner;
public class MainReverse {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.println ("Please enter a string");
String word = keyboard.nextLine();
int length = word.length();
charAt(length);
System.out.print (length);
}
}
The system out print at the end is just to see if its getting the right length, im not done the program yet just a little stuck
This post has been edited by GiveMeYourBagel: 22 October 2009 - 12:54 PM

New Topic/Question
Reply



MultiQuote






|