Today recommend

Java one calculation simple calculator

Xiaobai Simple Calculator First attempt to write code public class Calculator { public static void main(String[] args) { //create scan object Scanner scanner = new Scanner(System.in); System.out.println(“Please enter the first data: “); double a = scanner.nextDouble(); System.out.println(“Please enter the operator: “); String operator = scanner.next(); System.out.println(“Please enter the second data: “); double b = scanner.nextDouble(); […]