Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

Important Questions For ICSE

Loading...

Published in: Java And J2EE
1,309 Views

Some important programs for ICSE

Jayeeta B / Kolkata

3 years of teaching experience

Qualification: MCA

Teaches: All Subjects, Computer, Computer Science, School Level Computer

Contact this Tutor
  1. Write a program in JAVA that reads the list of 10 countries of world & their capital into two SDAs . The program should accept the name of the country as input and give the name of corresponding capital as The program should be designed to give an error message when capital is asked for a state whose name is not in the list import java.io.*, class prg4 public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String String b[]={"New Delhi", "Tokyo", "Islamabad" , " Dhaka", "Washington London", "Paris", "Rome", " Kath ma ndu" , "Thimpu"}; System.out.println("Enter the name of the country whose capital is to be searched"); String t=br.readLine(); int flag=O; int i; for(i=O;i
  2. N/A