I'm just starting to learn Java, and i ran into a problem while trying to multiply.
import java.util.Scanner;
public class Kertolasku {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
System.out.println("Please give a number");
int first = Integer.valueOf(lukija.nextLine());
System.out.println("Please give another number");
int second = Integer.valueOf(lukija.nextLine());
int v = first*second;
System.out.println(first + " * " + *second + " = ");
// toteuta ohjelma tänne
}
}
I've been stuck on this for about an hour or two. I have no idea on what to do. May someone help me please. Thanks in advance!
*
from*second