上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: public class Dog { static Dog d ; private Dog() { } public static Dog getDog() { if(d == null) return d = new Dog(); return d; } } 阅读全文
posted @ 2019-06-04 10:49 小小超plus 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 什么是面向对象? onject oriendted programming简称oop面向对象编程, 面向对象的编程语言 C++ java c# 数据库也开始面向对象了,如Oracle。 面向对象的编程思想 旨在计算机程序中模拟现实世界的概念 在oop中,现实世界的,所有事物全都被视为对象 在计算机程 阅读全文
posted @ 2019-05-25 12:00 小小超plus 阅读(134) 评论(0) 推荐(0) 编辑
摘要: public class Client { public static void main(String[] args) throws IOException { InetAddress address = InetAddress.getByName("localhost"); int port = 8800; byte[... 阅读全文
posted @ 2019-05-07 14:00 小小超plus 阅读(140) 评论(0) 推荐(0) 编辑
摘要: public class ServerThread extends Thread{ Socket socket = null; public ServerThread(Socket socket) { this.socket = socket; } @Override public void run() { // TODO ... 阅读全文
posted @ 2019-05-07 13:15 小小超plus 阅读(1455) 评论(0) 推荐(1) 编辑
摘要: public class Server { public static void main(String[] args) { try { ServerSocket serverSocket = new ServerSocket(8888); System.out.println("服务器即将启动,等待客户端的连接"); ... 阅读全文
posted @ 2019-05-07 12:36 小小超plus 阅读(236) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { // TODO Auto-generated method stub try { URL url = new URL("http://www.baidu.com"); InputStre... 阅读全文
posted @ 2019-05-07 12:05 小小超plus 阅读(498) 评论(0) 推荐(0) 编辑
摘要: spring配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文
posted @ 2019-04-18 17:01 小小超plus 阅读(208) 评论(0) 推荐(0) 编辑
摘要: public class Conn { static Connection con; static PreparedStatement sql; static ResultSet res; public Connection getConnecvtion() { try { Class.forName("com.mysql.... 阅读全文
posted @ 2019-04-12 13:00 小小超plus 阅读(282) 评论(0) 推荐(0) 编辑
摘要: public class Conn { static Connection con; static Statement sql; static ResultSet res; public Connection getConnecvtion() { try { Class.forName("com.mysql.jdbc.Dri... 阅读全文
posted @ 2019-04-11 19:32 小小超plus 阅读(381) 评论(0) 推荐(0) 编辑
摘要: public class Conn { static Connection con; static Statement sql; static ResultSet res; public Connection getConnecvtion() { try { Class.forName("com.mysql.jdbc.Dri... 阅读全文
posted @ 2019-04-11 19:17 小小超plus 阅读(574) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页