Java程序加两个数字
public class MyFirstJavaProgram {/* This is my first java program.
* This will add two numbers
*/
public static void main(String []args) {
int a = 3, b = 4;
Int sum = a + b;
System.out.println(sum); // prints 7
}
}
以上是 Java程序加两个数字 的全部内容, 来源链接: utcz.com/z/347366.html