int flag=one%2;
if(flag==0)
{
System.out.println("one是偶数");
}
if(flag==0)
{
System.out.println("one是偶数");
}
2015-03-04
public class HelloWorld{
public static void main(String[] args) {
String love="我爱慕课网";
String mylove="www.imooc.com";
System.out.println(love+"\n"+mylove);
}
}
public static void main(String[] args) {
String love="我爱慕课网";
String mylove="www.imooc.com";
System.out.println(love+"\n"+mylove);
}
}
2015-03-04
int sum=age1+age2+age3+age4;
double avg=sum/4;
int minus=age1-age2;
int newAge=--age1;
double avg=sum/4;
int minus=age1-age2;
int newAge=--age1;
2015-03-04
public class HelloWorld{
public static void main(String[] args) {
String cn="我爱慕课网";
String http="www.imooc.com";
System.out.println(cn);
System.out.println(http);
}
}
public static void main(String[] args) {
String cn="我爱慕课网";
String http="www.imooc.com";
System.out.println(cn);
System.out.println(http);
}
}
2015-03-03