package Lessons; import java.util.Scanner; public class Math { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.
Try this for the section of taking a String input.
`System.out.print(" Now enter ur operator "); String b1 =s.next(); if (b1.equalsIgnoreCase("-")) { System.out.println("You chose " + b1 + "as ur operator"); }`