Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE URGENT ( java language ) the question is : to create a program that takes input from the file . here is the code

image text in transcribed

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 nave

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

3. Develop a case study.

Answered: 1 week ago