public class HelloWorld{
public static void main(String[] args) {
final String a = "女";
final char b = '男';
System.out.println(a+"嫁"+b);
}
}
public static void main(String[] args) {
final String a = "女";
final char b = '男';
System.out.println(a+"嫁"+b);
}
}
2015-03-01
public class HelloWorld{
public static void main(String[] args) {
String city="徐州";
System.out.println("我的家乡在:"+city);
}
}
public static void main(String[] args) {
String city="徐州";
System.out.println("我的家乡在:"+city);
}
}
2015-03-01
if(age>60){
System.out.println("老年");
}else if(age>=60||age>=40){
System.out.println("中年");
}else if(age>=18||age>=40){
System.out.println("少年");
}else if(age<=18){
System.out.println("童年");
System.out.println("老年");
}else if(age>=60||age>=40){
System.out.println("中年");
}else if(age>=18||age>=40){
System.out.println("少年");
}else if(age<=18){
System.out.println("童年");
2015-02-28
switch(today)
{
case '一':
case '三':
case '五':
System.out.println("吃包子");
break;
case '二':
case '四':
case '六':
System.out.println("吃油条");
break;
case '日':
System.out.println("吃主席套餐");
}
{
case '一':
case '三':
case '五':
System.out.println("吃包子");
break;
case '二':
case '四':
case '六':
System.out.println("吃油条");
break;
case '日':
System.out.println("吃主席套餐");
}
2015-02-28