老师 我的创建新项目的时候提示Groovy cannot be enabled for project its library isn't configured
2021-05-08
public class HelloWorld{
public static void main(String[] args) {
final char LIK='男';
final char LIO='女';
System.out.println(LIK);
System.out.println(LIO);
}
}
public static void main(String[] args) {
final char LIK='男';
final char LIO='女';
System.out.println(LIK);
System.out.println(LIO);
}
}
2021-04-28
直接使用增强型for循环,最简单明确。
for(String n: hobbys){
System.out.println(n);
}
for(String n: hobbys){
System.out.println(n);
}
2021-04-27
if (num/100000000>0){System.out.println("10位数");}
else
{if (num/100000000>0){System.out.println("9位数");}
else{if (num/10000000>0){System.out.println("8位数");}
else{if (num/1000000>0){System.out.println("7位数");}
else{if (num/100000>0){System.out.println("6位数");}
else
{if (num/100000000>0){System.out.println("9位数");}
else{if (num/10000000>0){System.out.println("8位数");}
else{if (num/1000000>0){System.out.println("7位数");}
else{if (num/100000>0){System.out.println("6位数");}
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);
}
}
2021-04-23
public class HelloWorld{
public static void main(String[] args) {
String tmd="我爱慕课网";
String cnm="www.imooc.com";
System.out.println(tmd);
System.out.println(cnm);
}
}
public static void main(String[] args) {
String tmd="我爱慕课网";
String cnm="www.imooc.com";
System.out.println(tmd);
System.out.println(cnm);
}
}
2021-04-22