public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
int three1=one+two;
int four=one-two;
System.out.println(three1+four);
就是输出两个结果的和。可以像3楼那样加一个空字符,这样就是输出30-10了,或者加\n或\t什么的,
如System.out.println(three1+"\t"+four); 结果就是30 -10
楼上俩是在扯淡?还是我孤陋寡闻了?
System.out.println(three1+""+four);
System.out.println(three1,four);
System.out.println(three1,four);