See More

import java.util.Scanner; public class Main { static Calculate calculate=new Calculate(); public static void main(String[] args) { calculate.calculate(); /*Scanner in = new Scanner(System.in); int ab; while (true) { System.out.println("Введите число"); if (in.hasNextInt()) { ab = Integer.parseInt(in.nextLine()); System.out.println("Вы ввели: " + ab); break; } else { System.out.println("Вы ввели не число"); in.nextLine(); }}*/ } }