Question
PLEASE URGENT ( java language ) the question is : to create a program that takes input from the file . here is the code
PLEASE URGENT ( java language )
the question is : to create a program that takes input from the file .
here is the code :
import java.util.*;
public class NewMain
{
public static void main(String[] args)
{
int small, row = 5, col = 2, z;
int[][] array = new int[8][3];
Scanner sc=new Scanner(System.in);
for(int i = 0; i
{
for(int j = 0; j
{
array[i][j] = sc.nextInt();;
System.out.print(array[i][j] + " ");
}
System.out.println();
}
System.out.println(" ");
Arrays.sort(array, (a, b) -> b[1] - a[1]);
for(int i = 0; i
{
for(int j = 0; j
{
System.out.print(array[i][j] + " ");
}
System.out.println();
}
}
}
rank. Notepad nrar co=now Scanner I Svetom in; X File Edit Format View Help r 143 34 421 22 356 33 LO 221 12 665 45 t9) ren In 4 cubbcollab.com is sharing your screen Stop sharing Hide naveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started