complete the code

profilexsnbiubiu
Tochangethislicenseheader.docx

/*

 * To change this license header, choose License Headers in Project Properties.

 * To change this template file, choose Tools | Templates

 * and open the template in the editor.

 */

package javaapplication10;

import java .util.Scanner;

/**

 *

 * @author 883162300

 */

public class JavaApplication10 {

    /**

     * @param args the command line arguments

     */

    public static void main(String[] args) {

        // TODO code application logic here

    

    Scanner input = new Scanner (System.in);

    char ans = 'Y';

    while(ans == 'Y')

    {    

    

    double num1 = 0.0, num2 = 0.0;char op = ' ';

    System.out.println("Hi, I am really good at math! Put me to the test.");

    System.out.print("Please enter two numbers and the press Enter:");

    

    num1 = input.nextDouble();

    num2 = input.nextDouble();

    

    System.out.print("Please enter one of the operations +, -, * or / and press Enter: ");

    op = input.next().charAt(0);

    System.out.println("num1 ="+num1 + "num2 ="+num2 +" op ="+op);

    if (op == "+")

    {

        System.out.println( num1 + "+"+num2 + "="+ (num1+num2));

    }

    

    System.out.print("Play again [Y/N]?");

    ans = input.next().charAt(0);

    

    }

    

}