User Profile

Collapse

Profile Sidebar

Collapse
flipflop
flipflop
Last Activity: Mar 12 '08, 04:31 PM
Joined: Mar 2 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • flipflop
    replied to Searching an array, help!
    in Java
    <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();

    ...
    See more | Go to post

    Leave a comment:


  • flipflop
    started a topic Searching an array, help!
    in Java

    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!
    See more | Go to post
No activity results to display
Show More
Working...