public class Array {
public static void main (String[] args)
{
String [] sign = new String[]{"Fire", "Earth", "water"};
System.out.print(sign.length);
}
}
i want to print the length of the string which is located at the second element of the array. My output should be 2. how to get it? thanks :)
Comment