public class HelloWorld {
public static void main(String[] args) {
int one = 21 ;
if(one%2==0){
System.out.println("偶数");
}
else {
System.out.println("奇数");
}
}
}
public static void main(String[] args) {
int one = 21 ;
if(one%2==0){
System.out.println("偶数");
}
else {
System.out.println("奇数");
}
}
}
2015-04-28
public class HelloWorld{
public static void main(String[] args) {
//System.out.println("Java");
System.out.println("imooc");
/*System.out.println("Oracle");
System.out.println("MySQL");*/
}
}
//JAVA新人求师傅求照
public static void main(String[] args) {
//System.out.println("Java");
System.out.println("imooc");
/*System.out.println("Oracle");
System.out.println("MySQL");*/
}
}
//JAVA新人求师傅求照
2015-04-28
public class HelloWorld {
public static void main(String[] args) {
int age=25;
if(agr>18){
System.out.println("成年");
}
else
{
System.out.println("未成年");
}
}
}
}
public static void main(String[] args) {
int age=25;
if(agr>18){
System.out.println("成年");
}
else
{
System.out.println("未成年");
}
}
}
}
2015-04-27
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(20%2=0){
System.out.println("one是偶数");
}
else
{
System.out.println("one不是偶数");
}
}
public static void main(String[] args) {
int one = 20 ;
if(20%2=0){
System.out.println("one是偶数");
}
else
{
System.out.println("one不是偶数");
}
}
2015-04-27
public class HelloWorld{
public static void main(String[] args) {
String sb ="男";
String sa ="女";
System.out.println(sb+"\n"+sa);
}
}
public static void main(String[] args) {
String sb ="男";
String sa ="女";
System.out.println(sb+"\n"+sa);
}
}
2015-04-27