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 03:40
Hello my name is mihai and i need your : )i have to do a python project in computer science and i’m really busy with my mocks this period of time besides this i’m not good at coding so could someone pls pls pls sort me out ? i actually beg ; ))
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
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, 24.07.2019 00:30
Questions on the website: 13722363