subject

Part 1: getting started1. create a new java project for this lab assignment. 2. create a new class. name it lab8.3. add this code to the lab8 class. public class lab8{// sort the array//public static void main ( string[] args ){int[] values = {17, 5, 21, 8, 19, 2, 23, 15, 4, 13 }; int numvalues = 10; // print out the arraysystem. out. println("initial values: "); for ( int i=0; i < numvalues; i++ ) system. out. println( values[i]); // sort the arrayselectionsortfilm. sortit( values, numvalues ); // print out the arraysystem. out. println("\n\nsorted values: "); for ( int i=0; i < numvalues; i++ ) system. out. println( values[i]); system. out. println( ); }}4. create a new class. name it selectionsortfilm.5. add this code to the selectionsortfilm class. public class selectionsortfilm { public static void sortit( int[] array, int numberofthingstosort ){/* find the integer that should go in* each cell j of the array, from cell 0 to the end*/for ( int j=0; j film2**/public int compareto(filmtake2 f2){return (this. title. comparetoignorecase(f2.title)); }11. thought experiment: what value would compareto() return from these sample calls? filmtake2 f1 = new filmtake2("venom", 2018); filmtake2 f2 = new filmtake2("halloween", 2018); f1.compareto(f2); f2.compareto(f1); f1.compareto(f1); part 3: sorting objects12. make these highlighted changes to the selectionsortfilm class. public class selectionsortfilm {public static void sortit( filmtake2[] array, int numberofthingstosort ){/* find the integer that should go in* each cell j of the array, from cell 0 to the end*/for ( int j=0; j

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Atool that matches persoal skills qualities interests and talets to a career is called a
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Append and make table queries are called queries. select complex simple action i think action
Answers: 1
You know the right answer?
Part 1: getting started1. create a new java project for this lab assignment. 2. create a new class....
Questions
question
Mathematics, 28.06.2019 19:00
question
Mathematics, 28.06.2019 19:00
question
Advanced Placement (AP), 28.06.2019 19:00
question
Mathematics, 28.06.2019 19:00
Questions on the website: 13722363