摘要: public static void main(String[] args) { // TODO Auto-generated method stub // System.out.println("bowen"); File file=new File("D:\\英语"); if(file.isDirectory()){ ... 阅读全文
posted @ 2018-10-26 20:17 sunnybowen 阅读(210) 评论(0) 推荐(0) 编辑
摘要: public class CounterDate { public static void main(String[] args) { Date s = new Date(); System.out.println("一般日期输出:"+s);// Wed Oct 10 19:38:23 CST 2018 System.out.println("时间戳:... 阅读全文
posted @ 2018-10-26 20:13 sunnybowen 阅读(132) 评论(0) 推荐(0) 编辑
摘要: package com.bowen.dong; /** * * @author bw * */ public class Test { public static void main(String[] args) { String s1 ="sabc"; String s2 ="sabc"; Test t1 = new Test(... 阅读全文
posted @ 2018-10-26 20:08 sunnybowen 阅读(133) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { //声明一个字符串 String s = "itcast"; String s1=" i c a s t "; //替换操作 System.out.println("将it替换成cn.... 阅读全文
posted @ 2018-10-26 20:03 sunnybowen 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Runtime 类用于表示虚拟机运行时的状态,它用于封装JVM虚拟机进程,每次使用java虚拟机都对应一个Runtime实例,并且只有一个实例,因此该类采用单例模式进行设计,对象不可以直接实例化,若想在程序中获得一个Runtime实例 只能通过Runtime rt = Runtime.getRunt 阅读全文
posted @ 2018-10-26 20:00 sunnybowen 阅读(780) 评论(0) 推荐(0) 编辑
摘要: truncate语句只是清空表中的数据,delete语句如果后面不带where条件,也会清空表中的数据。 DDL语句是Data Definition Language 的缩写,这些语句定义了不同的数据段,数据库,表,索引和对象。包括create,drop,以及alter等!drop在上次研究院的还面 阅读全文
posted @ 2018-10-26 18:09 sunnybowen 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 这个程序涉及到IO流,很重要,要记下来。 1 构造FileInputStream 和FileOutputStream 对象,初始值为null 2 并且写好文件位置,注意文件位置的写法 3 创建字节素组 4 fis输入流的read(bytes) 方法,以及fos输出流的write方法 5 fos的fl 阅读全文
posted @ 2018-10-25 23:28 sunnybowen 阅读(328) 评论(0) 推荐(0) 编辑
摘要: public class FileTest { public static void main(String[] args) { Scanner scan =new Scanner(System.in); int week = scan.nextInt(); switch(week) { case 1:System.ou... 阅读全文
posted @ 2018-10-25 23:21 sunnybowen 阅读(261) 评论(0) 推荐(0) 编辑
摘要: public class FileTest { public static void main(String[] args) { int[] a= {71,2,1,98,2,8}; getMax(a); } public static int getMax(int[] arr) { int max=0; for(in... 阅读全文
posted @ 2018-10-25 23:14 sunnybowen 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 现在很多技术都比较新,像所谓的大数据,区块链,人工智能,但事实上接触了以后其实也没那么难。传统的技术还是很有用的。在公司,其实接触到多高级的技术,取决于自己的能力。 找工作也看出来了,培训班尽量不要报!!!在工作中学。Java系列学好了就很厉害了。就能找到很好的工作了。等以后有机会或者有余力再接触高 阅读全文
posted @ 2018-10-25 23:01 sunnybowen 阅读(2336) 评论(0) 推荐(0) 编辑
摘要: public class FileTest { public static void main(String[] args) { /* int n=9; byte b=(byte)n; */ int n=298; byte b=(byte)n; System.out.print... 阅读全文
posted @ 2018-10-25 22:59 sunnybowen 阅读(130) 评论(0) 推荐(0) 编辑
摘要: package com.bowen.dong; /** * 1 字符串常量赋值 * 2 String类的构造方法 * String() 创建一个String类对象 * String(String s) 创建一个String对象。指定值 * String(char[] chs) * @author bw * */ public cla... 阅读全文
posted @ 2018-10-25 22:56 sunnybowen 阅读(334) 评论(0) 推荐(0) 编辑
摘要: file.getPath(); getName(); isFile(), exists(); String[] s=f.list() 这些方法不要记,敲代码时可以根据API或者是提示选择自己需要的 阅读全文
posted @ 2018-10-25 22:53 sunnybowen 阅读(129) 评论(0) 推荐(0) 编辑
摘要: package com.bowen.dong; import java.io.IOException; import java.util.Properties; import java.util.Set; /** * * @author bw * */ public class Test { public static void main(String[] args) thro... 阅读全文
posted @ 2018-10-25 22:50 sunnybowen 阅读(648) 评论(0) 推荐(0) 编辑
摘要: public class Person { int age =10; public void speak() { int age = 90; System.out.println("大家好,我今年"+age+"岁了"); } 阅读全文
posted @ 2018-10-25 22:41 sunnybowen 阅读(122) 评论(0) 推荐(0) 编辑
摘要: public class FileTest { public static void main(String[] args) { int sum=0; for(int i=1;i<=100;i++) { if(i%2!=0) { continue; }else { ... 阅读全文
posted @ 2018-10-25 22:37 sunnybowen 阅读(230) 评论(0) 推荐(0) 编辑
摘要: package com.bowen.dong; import java.util.Properties; import java.util.Set; /** * @author bw * */ public class Test { public static void main(String[] args) { // 计算程序在进行求和操作时所耗费的时间 ... 阅读全文
posted @ 2018-10-25 22:34 sunnybowen 阅读(906) 评论(0) 推荐(0) 编辑
摘要: package a; /** * 枚举类 * @author bw * */ public enum Enum { A,B,C,D,E } 阅读全文
posted @ 2018-10-25 22:08 sunnybowen 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 代码一:打印九九乘法表,注意 1 这里用的是for循环,嵌套的双重for循环 2 第二个循环要注意循环变量的范围<i的 3 还有输出时,i是控制行的,一共有几行。例如i=1时,就是第一行。i=2,就是第二行,也就是乘以后面的数,j控制的是列 4 “\n”"\t"的使用 5 输出方式的打印 阅读全文
posted @ 2018-09-12 14:57 sunnybowen 阅读(444) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include bool isprime(int n){ if(n<=1){ return false; } for(int i=2;i<=sqrt(n);i++){ if(n%i==0){ return false; } } retu... 阅读全文
posted @ 2018-08-01 21:48 sunnybowen 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ char s[]={'W','T','L'}; double ans=1.0,tmp,a; int i,j,idx; for(i=0;itmp){ tmp=a; ... 阅读全文
posted @ 2018-08-01 17:23 sunnybowen 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ int a[][3]={{0},{1},{2}}; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ printf ("%d ",a[i][j]); } ... 阅读全文
posted @ 2018-08-01 16:24 sunnybowen 阅读(274) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ int i,j; int sum1,sum2,sum3; int n; int len1; int len2; char s[20]; scanf("%d",&n); getchar(... 阅读全文
posted @ 2018-07-31 00:17 sunnybowen 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ int h[62]={0}; int ret; char str1[1000],str2[1000]; scanf("%s%s",str1,str2); //printf("%s\n",str1); //p... 阅读全文
posted @ 2018-07-30 22:55 sunnybowen 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 题目列表: https://pintia.cn/problem-sets/994805342720868352/problems/994805478658260992 阅读全文
posted @ 2018-07-30 22:13 sunnybowen 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc,char const *argv[]){ char ch[26]; ch[2]='s'; ch[9]='1'; for(int i=0;i<10;i++) printf("%c",ch[i]); return 0; } 阅读全文
posted @ 2018-07-30 20:41 sunnybowen 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://s.bdqn.cn/library/list/10000106/10000515.shtml 阅读全文
posted @ 2018-06-04 19:12 sunnybowen 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1 、脚本概要 2、我快要疯了 录了好几次,都没有录制脚本。不知道哪里出错了,loadrunner12 版本据说除了最多只能模拟50个用户外,其他的比11好很多,可以用12录脚本,11来跑,这样就可以模拟大批量请求的情况,目前先把12搞定了吧,50个并发用户对于我们这个系统来说应该够用,不够用的时候 阅读全文
posted @ 2018-05-30 21:33 sunnybowen 阅读(277) 评论(0) 推荐(0) 编辑
摘要: #include struct student{ int num; float score; struct student *next; } ; int main(void){ struct student stu1,stu2,stu3; /*定义3个struct student 类型的变量*/ struct student *head,*p;/*定义2个指向str... 阅读全文
posted @ 2018-05-01 19:27 sunnybowen 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student stux); int main(void){ print(stu); } void print(struct student stux){ ... 阅读全文
posted @ 2018-05-01 19:12 sunnybowen 阅读(123) 评论(0) 推荐(0) 编辑