- 博客(9)
- 收藏
- 关注
原创 输出二进制文件
string filePath = Path.Combine(subFolderPath_Telemetry, hourFolderName + "_" + "数据FF.bin");string rootFolder_Telemetry = "造数据";
2023-08-31 21:52:43 63
原创 mysql与tomcat
(1) 在ClassPath的变量值中加入:%CATALINA_HOME%\lib\servlet-api.jar;用MySQL不怎么好用,随后下载Navicat Premium 16,连接MySQL报错,什么1045,密码有问题。变量名分别为CATALINA_BASE和CATALINA_HOME,变量值为Tomcat的安装目录。这里报错,需要去服务里面改属性,不需要重新卸载安装,然后本地服务就能启动了。寻找mysql安装.min什么文件,去把密码略过去,就能连接上mysql了。
2022-09-20 17:56:38 490 1
原创 运用switch,用年份算出生肖
代码:public class Test {public static void main(String[] args) { int year = 1996;//输入参数 int temp =(year-4)%12; switch (temp) { case 0: System.out....
2018-09-19 21:20:11 6262
原创 用while循环,实现九九乘法口诀
public class Mult { public static void main(String[] args) { int i=0; { while ( i<=8) { i++; int j =0; w...
2018-09-19 15:12:01 7252
原创 定义一个公交车,运用extends来分类
Bus:private float price; private Driver[] drivers; public Bus (int number,String line,float price,int driverCount) { this.number =number ; this.line =line; th...
2018-09-19 08:49:49 281
原创 打印三角形空心星星
首先写一个主方法:public class Test { public static void main(String[] args) { number.printStar(9); }}然后定义一个整形参数number:public class number {public static void printStar(int num) ...
2018-09-19 08:35:07 912
原创 创建一个类别:医生,并且使用方法调用
doctor创建类别与方法:public class Doctor { private String name; private String sex; private int age; private String department; public void setName(String name) { this.name = n...
2018-09-11 22:45:22 1590
原创 java 九九乘法口诀
方法:public class MT { public static void printMT ( int num ) { if(num>0) for(int j =1;j<=num;j++) { for(int k=1;k&l...
2018-09-11 21:04:33 589
原创 输入变量,用星号打印菱形
public class star{ public static void main(String[] args) { int x =3;//输入变量 for(int i = 1; i <= x; i++) { for(int j = 1; j <= x...
2018-09-09 16:48:08 1122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人