摘要: public class staticTest { //静态属性 static int j; static int s=80; int i; int k=55; /* * 静态代码块 */ static{ j=5; System.out.println("j的初始值为:"+j); } //普通方法 阅读全文
posted @ 2019-10-08 19:40 暮茗荋莱 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public class Person { String name="无名";//昵称 String sex="man";//姓别 /** * 无参构造方法 */ public Person() { name="山姆"; sex="男"; System.out.println("执行构造方法"); 阅读全文
posted @ 2019-10-08 19:39 暮茗荋莱 阅读(458) 评论(0) 推荐(0) 编辑
摘要: /*最新外卖显示*/SELECT*FROM orders ORDER BY OrderDate DESC LIMIT 3;SELECT OrederID FROM orders ORDER BY OrderDate DESC LIMIT 3SELECT OrederID FROM (SELECT O 阅读全文
posted @ 2019-10-08 10:47 暮茗荋莱 阅读(251) 评论(0) 推荐(0) 编辑
摘要: /* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 50725 Source Host : localhost:3306 阅读全文
posted @ 2019-10-08 10:45 暮茗荋莱 阅读(551) 评论(0) 推荐(0) 编辑