Computer Science, asked by bobthestriker8, 1 year ago

Define two constant arrays of strings, one containing country names (ex: India, France etc) and the other containing their capitals

Answers

Answered by Akshat999
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) ;
Similar questions
Math, 1 year ago