print和println有什么区别?
public class HelloWorld {
public static void main(String[] args) {
int age=25;
if(age>=18){
System.out.print("成年");
}else{
System.out.print("未成年");
}
}
}
public class HelloWorld {
public static void main(String[] args) {
int age=25;
if(age>=18){
System.out.print("成年");
}else{
System.out.print("未成年");
}
}
}
2022-02-07
举报