Search:

Type: Posts; User: Luchek

Search: Search took 0.12 seconds.

  1. Re: If no search results found..display a message....but how? is the question.

    I haven't compiled yet..still trying to figure out how to work it into the loop haha
  2. Re: If no search results found..display a message....but how? is the question.

    I've set:

    boolean resultFound

    I'm guessing the next step would be to put this inside the loop:


    resultFound= something

    and then at the end:
  3. Re: If no search results found..display a message....but how? is the question.

    How would I set it's value in the loop?? - That's what confuses me.
  4. Re: If no search results found..display a message....but how? is the question.

    I tried doing this:


    if(country.toLowerCase().contains(searchString))
    {
    System.out.println(country + "\t" +
    capital + "\t" + population);

    ...
  5. If no search results found..display a message....but how? is the question.

    Hey guys,

    First time poster :) so quick background on my project. I've been asked to make a program that accesses a file and outputs what you've searched for. The file contains a list of the...
Results 1 to 5 of 5