Java Practicals

  • View
    139

  • Download
    1

Embed Size (px)

Text of Java Practicals

Practical No.: 1Write a Java program to sort the numbers given by an array Code: public class Sort { public static void main(String ar[]) { int numbers[]= new int[5]; int k=0; System.out.print("Given List:"); for(int i=0; i