Hello, I am new to Java programming and I just got the NetBeans IDE. One problem that I've been having with Java is the input.
package learning;
public class Main
{
public static void main(String[] args)
{
int num1 = 0, num2 = 0;
cin >> num1 >> num2; // How do I do this in Java??
System.out.println((num1+num2));
}
}
How do I do that in Java? In C++, its too easy. Mainly you never need to use anything other than cin and getline... What do I use in Java??
Thanks