Java End-of-file

  • + 5 comments

    hi, how do you terminate taking the input from the console.. It kept asking, i print several runs...how do you exactly make the scan.hasNext() condition false through the console

    for eg:hello 1 hello hi 2 hi how 3 how how are you

    it still taking the input and i want to terminate here.