the output of this program should return the number of letter in words
/**
* @(#)Coun.java
*
*
* @author
* @version 1.00 2011/11/18
*/
import java .util.Scanner;
public class Coun {
Scanner input=new Scanner(System.in);
public static void main(String [] args) {
System.out.println("Enter a string: ");
String[] arr = input.nextInt();
int length = arr.length;
System.out.println ("Lenght of string: "+arr+" is:"+length);
}
}
is there any ideas about other case