<code>
public static String destSearch(Stri ng searchDest){
for(int j=0; j<times.arrive. length;++j){
if(where[j].equalsIgnoreCa se(searchDest)) {
Scanner inn=new Scanner(System. in);
System.out.prin tln("Enter the time you want to get on");
Double requested_time = inn.nextDouble( );
System.out.flus h();
...
User Profile
Collapse
-
Searching an array, help!
Hi, I'm having some trouble in writing a piece of code. I'm trying to seach an array, but it has multiple keys. I have currently written code (an if loop nested within a for loop) which will find the first of the keys, but it then stops, not returning the others! If anyone could give me any tips on how to make it carry on searching, it would be much appreciated! Thanks!
No activity results to display
Show More
Leave a comment: