Yes it is ok.I found what was wrong.The boolean error was not reseted to false! Thank you very much for your answers :)
Type: Posts; User: Samaras
Yes it is ok.I found what was wrong.The boolean error was not reseted to false! Thank you very much for your answers :)
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:...
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...
Here is the whole code
package essaycorrection;
import java.util.Scanner;
public class EssayCorrection {
public static void main(String[] args) {
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...