import java.math.BigInteger; import java.util.Scanner; /** * Replace this JavaDoc comment for the purpose of this class */ public class Multiplicacion { /** * Gets data from standard input */ private Scanner input = null; // private double ppm = 0.0; /** * Start the execution of the solution * @param args Command line arguments */ public static void main(String args[]) { Multiplicacion multiplicacion = new Multiplicacion(); multiplicacion.probarMultiplicacion(); } // /** * Run the solution. This method is called from main() */ public void probarMultiplicacion() { // Create object to read data from standard input this.input = new Scanner(System.in); System.out.print("Numero 1: "); BigInteger numero1 = this.input.nextBigInteger(); System.out.print("Numero 2: "); BigInteger numero2 = this.input.nextBigInteger(); BigInteger result = numero1.multiply(numero2); System.out.printf("%d * %d == %d%n", numero1, numero2, result); // Close the standard input this.input.close(); } // }