- 博客(5)
- 收藏
- 关注
原创 课堂笔记
public class Test04 {public static void main(String[] args) { // TODO Auto-generated method stub //递归调用一个函数调用跟它功能和名字一样的函数 int sum = 0; for (int i = 1; i <= 100; i++) { sum += i; } Sy...
2019-04-12 09:40:05
142
原创 课堂笔记
public class Test01 {public static void main(String[] args) {String s1 = “hello, world”;// CRUD// CreateString s2 = new String(“abcd”); // Retrieve System.err.println(s1.length()); System.ou...
2019-04-11 15:38:09
164
原创 作业
import java.util.IdentityHashMap;public class Test01 {//基督教门徒例题public static void main(String[]args) { //记录门徒的状态 int[] persons = new int[13]; //背踢掉人数的计数器 int personCount = 0; //数三计数器 int coun...
2019-04-04 16:03:04
189
原创 作业 关于函数的
public class Test02 {public static void main(String[] args) { //函数 // 函数调用的时候传递的参数叫实际参数 int a1 = 100; int a2 = 200; int max = a1; if (max < a2) { max = a2; } hello(); System.err.println...
2019-04-04 15:22:44
159
原创 用java编写的数7游戏
**用java编写的数7游戏** int sum=0; for(int i=1;i<=100;i++) { if(i%7==0||i%10==7 || i/10==7) { System.out.print(i+"\t"); sum++; } } System.out.print("\n"+sum+"个");
2019-03-30 15:37:14
939
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅