Search:

Type: Posts; User: Samaras

Search: Search took 0.19 seconds.

  1. Re: nextInt - can not find InputMismatchException

    Yes it is ok.I found what was wrong.The boolean error was not reseted to false! Thank you very much for your answers :)
  2. Re: nextInt - can not find InputMismatchException

    Can't find the icon but i copy pasted the output.(from netbeans)


    run:
    Please enter length of phrase,minimum number of words of the essay and maximum number of words : dd
    Unexpected IO ERROR:...
  3. Re: nextInt - can not find InputMismatchException

    Duplicate link,but you did good to repost in order to emphasize the importance of it :) So what was missing was this line

    import java.util.InputMismatchException;[code]
    So now i got it...
  4. Re: nextInt - can not find InputMismatchException

    Here is the whole code


    package essaycorrection;

    import java.util.Scanner;

    public class EssayCorrection {

    public static void main(String[] args) {
  5. nextInt - can not find InputMismatchException

    I am trying to read three integers from user.However,as always,i have to check if the input is ok.So i wrote the code,but can not find a way to ensure that the input is ok.InputMismatchException...
Results 1 to 5 of 5