This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package KataTest; | |
import java.util.*; //scanner | |
import java.util.regex.*;//regex (Pattern, Matcher) | |
public class Calculator { | |
public static void main(String[] args) { | |
/*получаем выражение из консоли*/ | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("Введите выражение из двух чисел от 1 до 10 или от I до X, оператор +, -, :, *: "); |