随笔分类 -  软件开发__JAVA

摘要:数据库名后面添加 &useUnicode=true&characterEncoding=UTF-8 阅读全文
posted @ 2021-01-11 19:45 zhaocundang 阅读(369) 评论(0) 推荐(0) 编辑
摘要:eclipse 指定jre位置 startup plugins/org.eclipse.equinox.launcher_1.4.0.v20161219 1356.jar launcher.library plugins/org.eclipse.equinox.launcher.win32.win3 阅读全文
posted @ 2020-05-16 13:48 zhaocundang 阅读(789) 评论(0) 推荐(0) 编辑
摘要:关于库: jar包中对于引用第三方库的话,需要再exe4j中引用。 rxtx http://rxtx.qbang.org/wiki/index.php/Download 阅读全文
posted @ 2019-09-24 14:01 zhaocundang 阅读(370) 评论(0) 推荐(0) 编辑
摘要:``` Failed to load the JNI shared library 解决方法 换了JDK 32位x86的 打开32位 eclipse 2017 oxygen 出现这个问题,修改 配置文件 指定一下32位jdk javaw.exe即可。 阅读全文
posted @ 2018-12-19 16:16 zhaocundang 阅读(275) 评论(0) 推荐(0) 编辑
摘要:list 添加对象时,没有把new object写到循环体里,导致最后添加了相同的一个对象; 阅读全文
posted @ 2018-12-10 19:12 zhaocundang 阅读(1011) 评论(0) 推荐(0) 编辑
摘要:A 类 interface 接口 test 类 阅读全文
posted @ 2018-09-27 22:14 zhaocundang 阅读(3403) 评论(0) 推荐(0) 编辑
摘要:多线程的服务器程序 线程中等待客户端的消息 我的代码能实现服务器与客户端的通信 问题是: 当客户端中断或退出 以上代码却不能判断Socket中断 跳不出while的无限循环 解决方法: 1. while(Binput.read()!= -1) 这种方法 能判断出客户端输入是否为空 客户端断开 能跳出 阅读全文
posted @ 2018-04-06 09:49 zhaocundang 阅读(2676) 评论(0) 推荐(0) 编辑
摘要:项目中借鉴了以下资料: https://www.cnblogs.com/whenever/p/5526420.html https://www.cnblogs.com/jpwz/p/5715852.html https://www.cnblogs.com/sddychj/p/6102192.html 阅读全文
posted @ 2018-04-06 00:10 zhaocundang 阅读(948) 评论(0) 推荐(0) 编辑
摘要:java 对象数组 from zhaocundang@163.com 先 用类声明数组; 再把类的实例赋给数组; 阅读全文
posted @ 2018-01-08 21:41 zhaocundang 阅读(289) 评论(0) 推荐(0) 编辑
摘要:打开eclipse 查看什么版本 ,我的是Oxygen help --> install newsoftware 打开地址 http://www.eclipse.org/windowbuilder/download.php 找到对应eclipse的版本 右键复制地址 下一步 accept 等待安装好 阅读全文
posted @ 2017-12-29 16:58 zhaocundang 阅读(4033) 评论(0) 推荐(0) 编辑
摘要:key1: String url="jdbc:mysql://localhost:3306/test1?useUnicode=true&characterEncoding=utf 8&useSSL=false"; key2: ?useSSL=false 阅读全文
posted @ 2017-12-24 21:50 zhaocundang 阅读(898) 评论(0) 推荐(0) 编辑
摘要:打开eclipse,选择help >install new software 来源http://www.cnblogs.com/xiaobo-Linux/p/7954274.html 打开网址 http://www.eclipse.org/windowbuilder/ 点击download 在相对应 阅读全文
posted @ 2017-12-02 14:57 zhaocundang 阅读(4994) 评论(0) 推荐(0) 编辑
摘要:import java.util.ArrayList; import java.util.List; public class Bank{ private List customers; //customers集合 private int numberOfCustomers; //记录客户数量 public... 阅读全文
posted @ 2017-11-01 22:19 zhaocundang 阅读(291) 评论(0) 推荐(0) 编辑
摘要:子类对象可以赋值给父类对象; 子类包含的成员方法和成员变量 要比 父类的多; 子类包含父类的成员方法和成员变量; 对于类对象的强制转换,也就是说,必须先将子类定义的对象赋给父类定义的对象之后才能用子类强制转换 赋给 新的子类对象 上面运行时正确的,如果子类定义的对象不赋给父类定义的对象的话,编译运行 阅读全文
posted @ 2017-10-24 10:28 zhaocundang 阅读(2331) 评论(0) 推荐(0) 编辑
摘要:(1)当“+”两边是非数值类型,“+”就被看作连接符。 (2)当“+”两边都是数值类型,“+”就被看作算术运算中的加号。 (3)当“+”一边是非数值,一边是数值类型,“+”就被看作连接符。 阅读全文
posted @ 2017-09-23 13:03 zhaocundang 阅读(777) 评论(0) 推荐(0) 编辑
摘要:this this是自身的一个对象,代表对象本身,可以理解为:指向对象本身的一个指针。 this的用法在java中大体可以分为3种: 1.普通的直接引用 这种就不用讲了,this相当于是指向当前对象本身。 2.形参与成员名字重名,用this来区分: class Person { private in 阅读全文
posted @ 2017-09-16 12:24 zhaocundang 阅读(211) 评论(0) 推荐(0) 编辑
摘要:package test; import java.util.Scanner; public class temperature { public static void main(String[] args) { double input_hs; double res; System.out.println("请输入华氏数值:");... 阅读全文
posted @ 2017-09-14 21:37 zhaocundang 阅读(674) 评论(0) 推荐(0) 编辑
摘要:Mac terminal Javac Open the Terminal's vim , then write them: public class test{ public static void main(String[] args){ System.out.println("test"); } 阅读全文
posted @ 2017-09-09 15:41 zhaocundang 阅读(327) 评论(0) 推荐(0) 编辑
摘要:文件页里找到build.xml文件,打开在前加入以下代码保存之按 Ctrl+C 复制代码 --> ... 阅读全文
posted @ 2015-12-12 12:22 zhaocundang 阅读(792) 评论(0) 推荐(0) 编辑
摘要:列号符号名称结合性(与操作数)目数说明1.点从左到右双目( )圆括号从左到右[ ]方括号从左到右2+正号从右到左单目-负号从右到左单目++自增从右到左单目前缀增,后缀增- -自减从右到左前缀减,后缀减~按位非/取补运算从右到左单目!逻辑非从右到左单目“!”不可以与“=”联用3*乘从左到右双目/除从左... 阅读全文
posted @ 2015-12-08 16:58 zhaocundang 阅读(433) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示