07、DoWhile循环
DoWhile题目一package com.wzt.www.struct;/** * @author WZT * @create 2021-03-24 21:12 */public class DoWhileDemo01 { public static void main(String[] args) { //计算1+2+3...+100=? int i = 0; int sum = 0; do { .
08、For循环讲解
讲解for循环package com.wzt.www.struct;/** * @author WZT * @create 2021-03-24 21:18 */public class ForDemo01 { public static void main(String[] args) {//初始化、条件、迭代 for (int i = 1; i <= 100; i++) { System.out.println(i); .
10、增强for循环
package com.wzt.www.struct;/** * @author WZT * @create 2021-03-25 21:31 */public class ForDemo05 { public static void main(String[] args) { int[] numbers = {10,20,30,40,50}; for (int i = 0; i < 5; i++) { System.out.
11、break、continue、goto
continuepackage com.wzt.www.struct;/** * @author WZT * @create 2021-03-25 21:53 */public class ContinueDemo { public static void main(String[] args) { int i = 0; while (i<100){ i++; if (i%10==0){ .
12、打印三角形及Debug
三角形package com.wzt.www.struct;/** * @author WZT * @create 2021-03-25 22:13 */public class TestDemo { //打印三角形 5行 public static void main(String[] args) { for (int i = 1; i <= 5; i++) { for (int j = 5; j >= i; j--) {
02、方法的定义和调用
package com.wzt.www.method;/** * @author WZT * @create 2021-03-26 9:47 */public class Demo02 { public static void main(String[] args) { int max = max(10, 10); System.out.println(max); } public static int max(int num1,in..
04、命令行传递参数
package com.wzt.www.method;/** * @author WZT * @create 2021-03-26 10:17 */public class Demo03 { public static void main(String[] args) { //args.length 数组长度 for (int i = 0; i < args.length; i++) { System.out.println.
02、数组的声明和创建
package com.wzt.www.array;/** * @author WZT * @create 2021-03-26 13:50 */public class ArrayDemo01 { public static void main(String[] args) { int[] nums;//1.声明一个数组 nums = new int[10];//创建一个数组 //3.给数组元素中赋值 nums[0].
03、三种初始化及内存分析
初始化package com.wzt.www.array;/** * @author WZT * @create 2021-03-26 17:25 */public class ArrayDemo02 { public static void main(String[] args) { //静态初始化:创建+赋值 int[] a = {1,2,3,4,5,6,7,8,9,10}; System.out.println(a[2]);
哒哒哒~数据库的初探索
数据库数据库:是一个组织内被应用程序使用的逻辑相一致的相关数据的集合。数据管理系统(DBMS)是定义、创建、维护数据库的一种工具,由硬件、软件、数据、用户、规程组成;DBMS也允许用户来控制数据库中数据的存取。硬件是指允许物理上存取数据的计算机硬件系统。eg.用户终端、硬盘等软件软件是指允许用户存取,维护和更新物理数据的实际程序。数据数据库中的数据存储在物理存储设备上。数据是独立于软件的一个实体。这种独立的性质使得组织可以在不改变物理数据及其存取方式的情况下,更换所应用的软件。用户它的
锵锵锵~数据库的模拟实现
模拟一个小型数据库系统(DBMS)的实现。目的:实现数据库,数据表和数据的增加,查询,修改和删除的简单操作。其中指令语句是自己想的适配于自己代码的类似SQL语言,所学有限,以此记录给自己日后回看嘻嘻,如有不足,欢迎指出。一、 主要功能模块(1)class Table类(专注于对某个数据表的操作)- 插入信息- 查询信息- 删除信息- 修改信息(2) class Database类(专注对不同数据表的操作)- 选择某个数据表进行细致操作- 显示目前数据库中所有数据表- 创建数据表-
今日推荐
周排行