Submitted Questions

  • Write a program that prompts the user to input three numbers.

    The program should then output numbers in ascending order.

    vishnu

    • Feb 24th, 2012


    import java.util.Iterator;
    import java.util.Scanner;
    import java.util.SortedSet;
    import java.util.TreeSet;


    public class ascend {

    static int i=0;
    public static void main(String[] args)
    {
    SortedSet elements = new TreeSet();
    for(int j=0;j

    NARESH KUMAR

    • Feb 3rd, 2012

    Code syntax is:- "java} import java.util.Scanner; public class A{ public static void main(String[] args){ Scanner scanner=new Scanner (System.in); int v1=s.nextInt();//value 1st i...