Search:

Type: Posts; User: dx2731

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    8,986

    [SOLVED] Re: Scanner closed error

    Thankyou so much! Now I see what I did wrong xD
    The code works as it should :) :) :)
  2. Replies
    6
    Views
    8,986

    [SOLVED] Re: Scanner closed error

    How would this look in my code above?
    Because I have tried and it doesnt work. I might be doing something wrong.
  3. Replies
    6
    Views
    8,986

    [SOLVED] Re: Scanner closed error

    Sorry, I had the original file and now all i need is how to get a message displayed when there is no match in the file. I put something like this as a test:


    ...
  4. Replies
    6
    Views
    8,986

    [SOLVED] Scanner closed error

    What would be the problem with this code?


    import java.io.*;
    import java.util.Scanner;

    /**
    * Write a description of class capital here.
    *
    * @author (your name)
Results 1 to 4 of 4