boolean a = true; boolean b = false;boolean c = false;boolean d = true;
System.out.println((a && b) + "未通过");
System.out.println((!b || c) + "通过");
System.out.println((c && d) + "未通过");
System.out.println((d) + "通过");
} }
System.out.println((a && b) + "未通过");
System.out.println((!b || c) + "通过");
System.out.println((c && d) + "未通过");
System.out.println((d) + "通过");
} }
2014-12-09
public class HelloWorld {
public static void main(String[] args) {
String[] hobbys = { "sports", "game", "movie" };
System.out.println("循环输出数组中元素的值:")
for(int i=0;i<hobbys.length;i++){
System.out.println(hobbys[i]);
}
}
}
public static void main(String[] args) {
String[] hobbys = { "sports", "game", "movie" };
System.out.println("循环输出数组中元素的值:")
for(int i=0;i<hobbys.length;i++){
System.out.println(hobbys[i]);
}
}
}
2014-12-09
终于做出来了:
three = one + two;
System.out.println(three);
three += one;
System.out.println(three);
three -= one;
System.out.println(three);
three *= one;
System.out.println(three);
three /= one;
System.out.println(three);
three %= one;
System.out.println(three);
three = one + two;
System.out.println(three);
three += one;
System.out.println(three);
three -= one;
System.out.println(three);
three *= one;
System.out.println(three);
three /= one;
System.out.println(three);
three %= one;
System.out.println(three);
2014-12-09
public class HelloWorld{ public static void main(String[] args) { System.out.println("我爱慕课网"); System.out.println("www.imooc.com");} }
2014-12-08