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;
2022-06-01
String name="爱慕课";
char sex='男';
int num=18;
double price=120.5;
boolean isOK=true;
char sex='男';
int num=18;
double price=120.5;
boolean isOK=true;
2022-05-12
public class HelloWorld{
public static void main(String[] args) {
String mylove= "我爱慕课网";
String _age= "www.imooc.com";
System.out.println(mylove+"\n"+_age);
}
}
public static void main(String[] args) {
String mylove= "我爱慕课网";
String _age= "www.imooc.com";
System.out.println(mylove+"\n"+_age);
}
}
2022-05-12
https://www.oracle.com/cn/java/technologies/javase/javase8u211-later-archive-downloads.html
复制粘贴这个网址,打开以后往下拉找到尾号8u261,找到跟视频中一样的那个然后下载就行
复制粘贴这个网址,打开以后往下拉找到尾号8u261,找到跟视频中一样的那个然后下载就行
2022-05-05
public class HelloWorld{
public static void main(String[] args) {
final String MAN="男";
final String GRI="女";
System.out.println(MAN);
System.out.println(GRI);
}
}
public static void main(String[] args) {
final String MAN="男";
final String GRI="女";
System.out.println(MAN);
System.out.println(GRI);
}
}
2022-05-02
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);
}
}
2022-05-02