Define two constant arrays of strings, one containing country names (ex: India, France etc) and the other containing their capitals
Answers
Answered by
3
String a[] =new String[2];
String b[] =new String[2];
a[0]="India";
a[1]="France";
b[0]="Delhi";
b[1]="Paris";
System.out.println("the countries are"+a);
System.out.println ("the capitals are"+b) ;
String b[] =new String[2];
a[0]="India";
a[1]="France";
b[0]="Delhi";
b[1]="Paris";
System.out.println("the countries are"+a);
System.out.println ("the capitals are"+b) ;
Similar questions