0

method-oriented program that finds the location of the search (userinput) in the list of (n) input in an arraylist in java

in creating a program it requires two classes , one class is for the main and the other class is the process that has a method return. here are the sample output of that question: input for n: 4 input n1: 4 input n2: 56 input n3: 30 input n4: 70 Enter search number: 56 found number 56 at position 2 if the user input the same number the output is input for n: 4 input n1: 4 input n2: 56 input n3: 30 input n4: 56 Enter search number: 56 found number 56 at position 2 and 4 if the user input invalid number the output is input for n: 4 input n1: 4 input n2: 56 input n3: 30 input n4: 70 Enter search number: 100 100 is not found in the list im having a hard time to create that program.. Thank you for your answer..

5th Oct 2019, 12:51 AM
Genessa Q. Caldo
Genessa Q. Caldo - avatar
1 Réponse
+ 1
Hello Genessa Q. Caldo Do you still need help?
2nd Apr 2020, 7:07 PM
Denise Roßberg
Denise Roßberg - avatar