已采纳回答 / arion林
使用static关键词设置静态成员变量,就可以不用实例public class Test{ tatic int num=4; static String str="hello"; public static void main(String[] args){ System.out.println(num); System.out.println(str); }}
2018-09-03
最新回答 / 慕田峪6347357
如果是 ****** 一排的话 说明 没有换行 内层循环使用 System.out.print();外层循环使用 System.out.println();
2018-08-31
已采纳回答 / 冬天雪后
没有啊,第一种写法是,输出“three += one ==> ”(文字),接着输出 three这个变量的值。第二种写法是输出“three”(文字),就没有东西了你想说的是很多人用System.out.println(three)吧,注意,没有引号,有引号就是直接输出引号里面的内容,没引号就是输出three这个变量的值,那里题目要求要写第一种,不然等下输出的时候会和标准答案不一样,不能通过,还有,标准答案在"+="和"==>"两边都有空格的,有些严格一点的做题网站,少一个空格都不能通过,所以必须...
2018-08-31
最新回答 / 慕粉1721587255
import java.util.Arrays;public class HelloWorld { //完成 main 方法 public static void main(String[] args) { int[] scores={ 89 , -23 , 64 , 91 , 119 , 52 , 73}; HelloWorld he = new HelloWorld(); he.sort_score(scores); ...
2018-08-31