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

ICSE Important Questions

Loading...

Published in: Java And J2EE
1,491 Views

Some important questions for class X and IX

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 menu driven program in JAVA to accept a word and print the word in reverse order or alphabetical order according to user's choice. import java.io.*, class prg4 public static void main(String args[])throws IOException BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter Choice"); String w= String wl= System.out.println("1:Reverse\n2:Alphabetical order\n"); int n=lnteger.parselnt(br.readLine()); System.out.println("Enter Word"); String str=br.readLine(); switch(n) case l:int l=str.length(); for(int i=l-1;i>=0;i--) char ch=str.charAt(i); w=w+ch; System.out.println(w); break; case 2:String p=w.toUpperCase();
  2. int m=str.length(); for(int i=65;i
  3. N/A