public class For_IN
{
public static void main(String args[])
{
String[] str = new String[5];
str[0]="abc0";
str[1]="abc1";
str[2]="abc2";
str[3]="abc3";
str[4]="abc4";
for(String newstr : str)
{
System.out.println(newstr+" ;");
}
int[] intary = {10,11,12,13};
System.out.println(Arrays.toString(intary));
}
}
{
public static void main(String args[])
{
String[] str = new String[5];
str[0]="abc0";
str[1]="abc1";
str[2]="abc2";
str[3]="abc3";
str[4]="abc4";
for(String newstr : str)
{
System.out.println(newstr+" ;");
}
int[] intary = {10,11,12,13};
System.out.println(Arrays.toString(intary));
}
}
No comments:
Post a Comment