class
Strings {
int i;
String
name[]={"Aswath","Aswin","Anand","Aditya","Anirudh"};
void show() {
System.out.println("My favourite
names are ");
for(i=0;i<5;i++) {
System.out.println(name[i]);
}
}
public static void main(String args[])
{
Strings s=new Strings();
s.show();
}
}
No comments:
Post a Comment