03 2019 档案
day31 用缓冲流复制文件
摘要:package zuoye; import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.BufferedReader;import java.io.BufferedWriter;impo 阅读全文
posted @ 2019-03-26 15:49 ~王~ 阅读(66) 评论(0) 推荐(0) 编辑
day30-2FileWriter不用数组进行复制文件
摘要:package lianxi;//要导的包import java.io.FileReader;import java.io.FileWriter;import java.io.IOException; public class lianxi4 { public static void main(St 阅读全文
posted @ 2019-03-25 19:55 ~王~ 阅读(75) 评论(0) 推荐(0) 编辑
day30-3字节转换字符
摘要:package lianxi1; import java.io.FileOutputStream;import java.io.OutputStreamWriter; public class lianxi6 { public static void main(String[] args) { tr 阅读全文
posted @ 2019-03-25 19:55 ~王~ 阅读(134) 评论(0) 推荐(0) 编辑
day30-2FileWriter用数组进行复制文件
摘要:package lianxi;//要到的包import java.io.FileReader;import java.io.FileWriter;import java.io.IOException; public class lianxi3 { public static void main(St 阅读全文
posted @ 2019-03-25 19:54 ~王~ 阅读(99) 评论(0) 推荐(0) 编辑
day30-1FileInputStream不用数组进行复制文件
摘要:package lianxi;//要导的包import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException; public class lianxi2 { public static v 阅读全文
posted @ 2019-03-25 19:53 ~王~ 阅读(74) 评论(0) 推荐(0) 编辑
day30-1FileInputStream用数组进行复制文件
摘要:package lianxi; //导入包 import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class lianxi1 { public stati 阅读全文
posted @ 2019-03-25 19:52 ~王~ 阅读(128) 评论(0) 推荐(0) 编辑
day29-2在d盘创建文件夹aaa 里面有aaa.txt bbb.txt ddd.txt
摘要:package zuoye; public class person { private String name; private int age; public person( int age,String name) { this.name = name; this.age = age; } p 阅读全文
posted @ 2019-03-24 18:15 ~王~ 阅读(260) 评论(0) 推荐(0) 编辑
day29-1在d盘创建文件夹aaa 里面有aaa.txt bbb.txt ddd.txt
摘要:package zuoye; import java.io.File;import java.io.IOException; public class zuoye { public static void main(String[] args){ try { fu(); } catch (IOExc 阅读全文
posted @ 2019-03-24 18:12 ~王~ 阅读(275) 评论(0) 推荐(0) 编辑
day28 增强for循环进行Map嵌套Map
摘要:package zuoye; import java.util.HashMap;import java.util.Map.Entry;import java.util.Set; public class zuoye { public static void main(String[] args){ 阅读全文
posted @ 2019-03-22 16:41 ~王~ 阅读(418) 评论(0) 推荐(0) 编辑
day27-2输入固定的年来计算是不是闰年
摘要:package zuoye; import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date; public class zuoye3 { public static void main( 阅读全文
posted @ 2019-03-19 21:06 ~王~ 阅读(108) 评论(0) 推荐(0) 编辑
day27-1计算活了多少天
摘要:package zuoye; import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date; public class zuoye1 { public static void main( 阅读全文
posted @ 2019-03-19 21:05 ~王~ 阅读(139) 评论(0) 推荐(0) 编辑
day26-7String trim(): 去掉字符串两端空格
摘要:public static void main(String[] args){ fu6(); } public static void fu6(){ String a=" aasdsa "; System.out.print("原函数"+a+" "); String a1=a.trim(); Sys 阅读全文
posted @ 2019-03-19 21:04 ~王~ 阅读(135) 评论(0) 推荐(0) 编辑
day26-6String repalce(String old, String newstr): 将字符串中的老字符串,替换为新字符串
摘要:public static void main(String[] args){ fu5(); } public static void fu5(){ String a="aaa222222"; System.out.print("原函数"+a+" "); String a1=a.replace('2 阅读全文
posted @ 2019-03-19 21:03 ~王~ 阅读(407) 评论(0) 推荐(0) 编辑
day26-5String repalce(char oldChar, char newChar): 将字符串中的老字符,替换为新字符
摘要:public static void main(String[] args){ fu4(); } public static void fu4(){ String a="asd211"; System.out.print("原函数"+a+" "); String a1=a.replace("1"," 阅读全文
posted @ 2019-03-19 21:02 ~王~ 阅读(361) 评论(0) 推荐(0) 编辑
day26-4String toUpperCase(): 字符串转成大写 小写
摘要:public static void main(String[] args){ fu3(); } public static void fu3(){ String a="aasadasd"; System.out.print("原函数"+a+" "); String a1=a.toUpperCase 阅读全文
posted @ 2019-03-19 21:01 ~王~ 阅读(150) 评论(0) 推荐(0) 编辑
day26-3String toLowerCase(): 字符串转成小写 大写
摘要:public static void main(String[] args){ fu2(); } public static void fu2(){ String a="ASSDF"; System.out.print("原函数"+a+" "); String a1=a.toLowerCase(); 阅读全文
posted @ 2019-03-19 20:59 ~王~ 阅读(143) 评论(0) 推荐(0) 编辑
day26-2char charAt(int index): 返回索引上的字符
摘要:public static void main(String[] args){ fu1(); } public static void fu1(){ String a="asdas"; System.out.print("原函数"+a+" "); char a1=a.charAt(4); Syste 阅读全文
posted @ 2019-03-19 20:58 ~王~ 阅读(370) 评论(0) 推荐(0) 编辑
day26-1boolean isEmpty(): 判断字符串是不是空串,如果是空的就返回true
摘要:public static void main(String[] args){ fu(); } public static void fu(){ String a=""; System.out.print("原函数"+a+" "); boolean a1=a.isEmpty(); System.ou 阅读全文
posted @ 2019-03-19 20:57 ~王~ 阅读(665) 评论(0) 推荐(0) 编辑
day25-3获取指定字符串中,大写字母、小写字母、数字的个数
摘要:package zuoye2; public class zuoye1 { public static void main(String[] args) { a(); } public static void a(){ String a1="asdaa12112ADSJADY"; byte[] b= 阅读全文
posted @ 2019-03-19 20:56 ~王~ 阅读(228) 评论(0) 推荐(0) 编辑
day25-1获取一个字符串中,另一个字符串出现的次数
摘要:package zuoye; public class zuoye2 { public static void main(String[] args) { a(); } public static void a(){ String a1="asdasdasdasdasd"; String a2="a 阅读全文
posted @ 2019-03-19 20:55 ~王~ 阅读(200) 评论(0) 推荐(0) 编辑
day25-2将字符串的首字母转成大写,其他内容转成小写
摘要:package zuoye1; public class zuoye1 { public static void main(String[] args) { a(); } public static void a(){ String a1="aSdAsd"; String a2=a1.substri 阅读全文
posted @ 2019-03-19 20:55 ~王~ 阅读(164) 评论(0) 推荐(0) 编辑
day24-3-2子类继承构造方法
摘要:package zuoye3; public class Person { private String name; private int age; private String gender; public Person(){ System.out.println("无参"); } public 阅读全文
posted @ 2019-03-18 08:13 ~王~ 阅读(147) 评论(0) 推荐(0) 编辑
24-3-1 子类继承输出构造方法
摘要:package zuoye2; public class Animal { private String name; private int age; public Animal(){ System.out.println("无参"); } public Animal(String name,int 阅读全文
posted @ 2019-03-18 08:11 ~王~ 阅读(132) 评论(0) 推荐(0) 编辑
24-2 show构造方法
摘要:package zuoye1; public class Employee { private String name; private int id; private double salary; public Employee(){ System.out.println("无参"); } pub 阅读全文
posted @ 2019-03-18 08:10 ~王~ 阅读(168) 评论(0) 推荐(0) 编辑
day24-1构造方法
摘要:package zuoye; public class Person { private String name; private int age; public Person(){ this("忘了",15); } public Person(String name,int age){ this. 阅读全文
posted @ 2019-03-18 08:08 ~王~ 阅读(79) 评论(0) 推荐(0) 编辑
day23-4 最小值-到最大值排序
摘要:package zuoye; public class text { public static void main(String[] args){ int[] arr={12,2,55,22,44,34,}; print(arr); select(arr); } public static voi 阅读全文
posted @ 2019-03-15 10:12 ~王~ 阅读(109) 评论(0) 推荐(0) 编辑
day23-4 最小值-到最大值冒泡排序
摘要:package zuoye; public class Test6 { public static void main(String[] args) { int[] arr={12,2,55,22,44,34,}; print(arr); select(arr); } public static v 阅读全文
posted @ 2019-03-15 10:08 ~王~ 阅读(112) 评论(0) 推荐(0) 编辑
day23-3 最大值-到最小值排序
摘要:package zuoye; public class Test5 { public static void main(String[] args) { int[] arr={12,2,55,22,44,34,}; print(arr); select(arr); } public static v 阅读全文
posted @ 2019-03-15 10:07 ~王~ 阅读(100) 评论(0) 推荐(0) 编辑
day23-2 倒叙
摘要:package zuoye; public class Test4 { public static void main(String[] args) { int[] arr={12,2,55,22,44,34,}; print(arr); select(arr); } public static v 阅读全文
posted @ 2019-03-15 10:06 ~王~ 阅读(96) 评论(0) 推荐(0) 编辑
day23-1 水仙花
摘要:package zuoye; public class Test2{ public static void main(String[] args){ for(int i=100;i<1000;i++){ int bai=i/100; int shi=i%100/10; int ge=i%10; if 阅读全文
posted @ 2019-03-15 10:05 ~王~ 阅读(78) 评论(0) 推荐(0) 编辑
day22 随机输出ArrayList
摘要:import java.util.ArrayList;import java.util.Random; public class a { public static void main(String[] args) { ArrayList<a0> arr=new ArrayList<a0>(); / 阅读全文
posted @ 2019-03-13 10:11 ~王~ 阅读(180) 评论(0) 推荐(0) 编辑
day21 遍历输出集合ArrayList
摘要:public class Goods{ String shanPinName; double size; double jiaGe; int kuCun;} import java.util.ArrayList;public class testGoods{ public static void m 阅读全文
posted @ 2019-03-13 10:07 ~王~ 阅读(117) 评论(0) 推荐(0) 编辑
day20遍历数组指定输出的数组
摘要:import java.util.Random;public class lianxi{public static void main(String[] args){ String[] arr={"许锦迪","白小龙","赵帅","王启明","冯赟","曹正明","杜光明","李法勇","崔超波", 阅读全文
posted @ 2019-03-13 10:05 ~王~ 阅读(261) 评论(0) 推荐(0) 编辑
day20数组比较最大值
摘要:public class lianxi{ public static void main(String[] args){ int[] arr = new int[]{11,22,55,88,44,99}; int a=0; for(int i=0;i<arr.length-1;i++){ if(ar 阅读全文
posted @ 2019-03-13 10:03 ~王~ 阅读(119) 评论(0) 推荐(0) 编辑
day19-1 偶数求和
摘要:/*public class zuoye{ public static void main(String[] args){ int sum=0; for(int i=0;i<=100;i++){ if(i%2==0){ sum=sum+i; } } System.out.println("1 100 阅读全文
posted @ 2019-03-13 08:32 ~王~ 阅读(150) 评论(0) 推荐(0) 编辑
day19-1 输入你的成绩判断你是否什么等级
摘要:/*import java.util.Scanner;public class zuoye{ public static void main(String[] args){ System.out.println("请输入考试成绩"); Scanner a= new Scanner(System.in 阅读全文
posted @ 2019-03-13 08:31 ~王~ 阅读(155) 评论(0) 推荐(0) 编辑
day19-1输入一个数字输出星期几
摘要:/*import java.util.Scanner;public class zuoye{ public static void main(String[] args){ System.out.println("请输入值"); Scanner a=new Scanner(System.in); i 阅读全文
posted @ 2019-03-13 08:30 ~王~ 阅读(417) 评论(0) 推荐(0) 编辑
day19随机声明一个数字然后在命令行猜
摘要:/*import java.util.Scanner;import java.util.Random;public class lianxi1{ public static void main(String[] args){ Random a=new Random(); int d =a.nextI 阅读全文
posted @ 2019-03-13 08:29 ~王~ 阅读(108) 评论(0) 推荐(0) 编辑
day18输出定义值的商品清单
摘要://定义一个类/*public class zuoye{ //主方法 public static void main(String[] args){ //顶部 //控制台输出 System.out.println(" 商品库存清单 "); //控制台输出 System.out.println("品牌 阅读全文
posted @ 2019-03-13 08:28 ~王~ 阅读(89) 评论(0) 推荐(0) 编辑
day17取值运算
摘要:public class lianxi1{ public static void main(String[] args){ int b = 123; int g = 123%120; int bai = 123/100; int shi = (123%100)/10; System.out.prin 阅读全文
posted @ 2019-03-13 08:27 ~王~ 阅读(79) 评论(0) 推荐(0) 编辑
day17三元运算
摘要:public class jieri{ public static void main(String[] args){ double price=100; price=(price>=50)?price*0.88:price*1; System.out.println(price); }} 阅读全文
posted @ 2019-03-13 08:26 ~王~ 阅读(198) 评论(0) 推荐(0) 编辑
day16提交框的验证
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src= "js/jquery-1.8.3.js"></script> <script type="t 阅读全文
posted @ 2019-03-13 08:25 ~王~ 阅读(74) 评论(0) 推荐(0) 编辑
day15图片隐藏显示
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script> function init(){ var d=document.getElementById("b"); var e=document.getEl 阅读全文
posted @ 2019-03-13 08:24 ~王~ 阅读(85) 评论(0) 推荐(0) 编辑
day14
摘要:a{ text-decoration: none;}#body{ width: 1600px; height:900px; margin: auto;}.head1{ width: 1600px; height: 60px; background:#A60000;}.head1 #c1 a{ fon 阅读全文
posted @ 2019-03-13 08:23 ~王~ 阅读(101) 评论(0) 推荐(0) 编辑
day13
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script> function init(){ setInterval('a()',2000); } var i=2; function a(){ i++; d 阅读全文
posted @ 2019-03-13 08:22 ~王~ 阅读(77) 评论(0) 推荐(0) 编辑
day12
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script> function xianshi(id,xian){ document.getElementById(id+"span").innerHTML=" 阅读全文
posted @ 2019-03-13 08:21 ~王~ 阅读(78) 评论(0) 推荐(0) 编辑
day11
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>网页题目</title></head><body><h1 align="center">阿达<span style="color:red">&lt;sad&gt;</span></h1>< 阅读全文
posted @ 2019-03-13 08:20 ~王~ 阅读(191) 评论(0) 推荐(0) 编辑
day10
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> //增删改查 var arr=["张无忌","白起","王","灭绝师 阅读全文
posted @ 2019-03-13 08:19 ~王~ 阅读(108) 评论(0) 推荐(0) 编辑
day9
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <!--<script> function ji(){ var sum=0; for(var i=1;i<100;i=i+2){ 阅读全文
posted @ 2019-03-13 08:18 ~王~ 阅读(89) 评论(0) 推荐(0) 编辑
day8
摘要:<!--内部--><script>console.log("你好")/控制台输出/document.write("温度而知新")/*页面输出*/window.alert(“你好”)/弹出框/prompt("请输入你的名字",sasd)收集用户信息</script><!--外部--><script s 阅读全文
posted @ 2019-03-13 08:17 ~王~ 阅读(153) 评论(0) 推荐(0) 编辑
day7
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style> #a0{ width: 400px; height: 800px; margin: auto; } a{ text-decoration: none 阅读全文
posted @ 2019-03-13 08:16 ~王~ 阅读(58) 评论(0) 推荐(0) 编辑
day6
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <style> body{ margin: 0px; } #a1{ width: 1903px; height: 100px; background: #F7F 阅读全文
posted @ 2019-03-13 08:16 ~王~ 阅读(77) 评论(0) 推荐(0) 编辑
day5
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style> .a1{ width: 500px; height: 200px; border: 1px solid coral; } #a1-1{ width: 阅读全文
posted @ 2019-03-13 08:15 ~王~ 阅读(56) 评论(0) 推荐(0) 编辑
day1日
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>网页题目</title></head><body><h1 align="center">阿达<span style="color:red">&lt;sad&gt;</span></h1>< 阅读全文
posted @ 2019-03-13 08:14 ~王~ 阅读(189) 评论(0) 推荐(0) 编辑
day4-1
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body><!--<a href="" target="_blank"新网页中打开 target="_self"当前页面打开默认href=“”名称javas 阅读全文
posted @ 2019-03-13 08:13 ~王~ 阅读(135) 评论(0) 推荐(0) 编辑
day3-1
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body><h2 align="center">Flowers</h2><p><a href="#Daisy" target="_blank">Daisy< 阅读全文
posted @ 2019-03-13 08:12 ~王~ 阅读(155) 评论(0) 推荐(0) 编辑
day1-3
摘要:<!!DOCTYPE html><html> <head> <title></title> <meta charset="utf-8"/> <style> .box{font-size: 48px;} body{background: darkgray; } </style> <bady > <sp 阅读全文
posted @ 2019-03-13 08:11 ~王~ 阅读(115) 评论(0) 推荐(0) 编辑
day2-1
摘要:<!DOCTYPE> <html> <head><meta charset="utf-8"><title></title></head><body><h1 align="center">HTML <span style="color:red">&lt;Day01&gt;</span></h1><hr 阅读全文
posted @ 2019-03-13 08:11 ~王~ 阅读(126) 评论(0) 推荐(0) 编辑
day1-2
摘要:<! <!DOCTYPE html><html></html><head></head><meta charst="utf-8"><title></title><body></body><b></b><br/><p></p><hr/><img src=""/><s></s><h1></h1><h 阅读全文
posted @ 2019-03-13 08:10 ~王~ 阅读(159) 评论(0) 推荐(0) 编辑
day1 1
摘要:<! <!DOCTYPE html><html></html><head></head><meta charst="utf-8"><title></title><body></body><b></b><br/><p></p><hr/><img src=""/><s></s><h1></h1><h 阅读全文
posted @ 2019-03-13 08:09 ~王~ 阅读(92) 评论(0) 推荐(0) 编辑


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