A majority of my code is working code it is just when I tried adding in a multiplication of the users input which I began to get errors. Can you give me advice how to do it better or get rid of the errors?
package resittests;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Inputting {
public static void main(String[] args) {
Scanner Scan = new Scanner (System.in); // Creates the Scanner to allow input
System.out.print("Enter a Number");
String input = null;
String first = Scan.next();
int num1 = Integer.parseInt(input);
String Second; // Second Declared as a string
Second = JOptionPane.showInputDialog("Enter Another Number");
String input2 = null;
int num2 = Integer.parseInt(input2);
System.out.print("What is your Name?");
String name = Scan.next();
String Age; // Age Declared as a String
Age = JOptionPane.showInputDialog("Enter your age ");
System.out.print( name + " "+ "(Aged" + " " + Age + ")" + "," + "your answer is " + (num1 * num2) );
}
}