No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
if input is given like (5,4,6,3) it returns 4,5,3,6 but i want it to return like 3,4,5,6....kindly help. import java.util.Scanner; public class sort { public static void main(String args[]) { int rows; int cols; Scanner input = new Scanner(System.in); System.out.println("Enter number of rows u want in matrix "); rows=input.nextInt(); System.out.println("Enter … |
|
import java.util.Scanner; public class sort { public static void main(String args[]) { int rows; int cols; Scanner input = new Scanner(System.in); System.out.println("Enter number of rows u want in matrix "); rows=input.nextInt(); System.out.println("Enter number of columns u want in matrix "); cols=input.nextInt(); int Numbers[][]=new int[rows][cols]; int temp; //get input System.out.println("Enter integer … |