日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程语言 > java >内容正文

java

Java_String_Arrays_Character_BigDecimal_Calendar_Math_System

發(fā)布時(shí)間:2024/3/13 java 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Java_String_Arrays_Character_BigDecimal_Calendar_Math_System 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1.String

package cn.itcast_01; /* * Scanner:用于接收鍵盤錄入數(shù)據(jù)。 * * 前面的時(shí)候: * A:導(dǎo)包 * B:創(chuàng)建對(duì)象 * C:調(diào)用方法 * * System類下有一個(gè)靜態(tài)的字段: * public static final InputStream in; 標(biāo)準(zhǔn)的輸入流,對(duì)應(yīng)著鍵盤錄入。 * * InputStream is = System.in; //靜態(tài)的類成員變量in system類直接調(diào)用 * * class Demo { * public static final int x = 10; * public static final Student s = new Student(); * } * int y = Demo.x; * Student s = Demo.s; * * * 構(gòu)造方法: * Scanner(InputStream source) */ import java.util.Scanner; public class ScannerDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 Scanner sc = new Scanner(System.in); int x = sc.nextInt(); System.out.println("x:" + x); } } ====================================================== package cn.itcast_02; import java.util.Scanner; /* * 基本格式: * public boolean hasNextXxx():判斷是否是某種類型的元素 * public Xxx nextXxx():獲取該元素 * * 舉例:用int類型的方法舉例 * public boolean hasNextInt() * public int nextInt() * * 注意: * InputMismatchException:輸入的和你想要的不匹配 */ public class ScannerDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 Scanner sc = new Scanner(System.in); // 獲取數(shù)據(jù) if (sc.hasNextInt()) { int x = sc.nextInt(); System.out.println("x:" + x); } else { System.out.println("你輸入的數(shù)據(jù)有誤"); } } } ================================================================== package cn.itcast_03; import java.util.Scanner; /* * 常用的兩個(gè)方法: * public int nextInt():獲取一個(gè)int類型的值 * public String nextLine():獲取一個(gè)String類型的值 * * 出現(xiàn)問題了: * 先獲取一個(gè)數(shù)值,在獲取一個(gè)字符串,會(huì)出現(xiàn)問題。 * 主要原因:就是那個(gè)換行符號(hào)的問題。 * 如何解決呢? * A:先獲取一個(gè)數(shù)值后,在創(chuàng)建一個(gè)新的鍵盤錄入對(duì)象獲取字符串。 * B:把所有的數(shù)據(jù)都先按照字符串獲取,然后要什么,你就對(duì)應(yīng)的轉(zhuǎn)換為什么。 */ public class ScannerDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 Scanner sc = new Scanner(System.in); // 獲取兩個(gè)int類型的值 // int a = sc.nextInt(); // int b = sc.nextInt(); // System.out.println("a:" + a + ",b:" + b); // System.out.println("-------------------"); // 獲取兩個(gè)String類型的值 // String s1 = sc.nextLine(); // String s2 = sc.nextLine(); // System.out.println("s1:" + s1 + ",s2:" + s2); // System.out.println("-------------------"); // 先獲取一個(gè)字符串,在獲取一個(gè)int值 // String s1 = sc.nextLine(); // int b = sc.nextInt(); // System.out.println("s1:" + s1 + ",b:" + b); // System.out.println("-------------------"); // 先獲取一個(gè)int值,在獲取一個(gè)字符串 // int a = sc.nextInt(); // String s2 = sc.nextLine(); // System.out.println("a:" + a + ",s2:" + s2); // System.out.println("-------------------"); int a = sc.nextInt(); Scanner sc2 = new Scanner(System.in); String s = sc2.nextLine(); System.out.println("a:" + a + ",s:" + s); } } =========================================================================== package cn.itcast_01; /* * 字符串:就是由多個(gè)字符組成的一串?dāng)?shù)據(jù)。也可以看成是一個(gè)字符數(shù)組。 * 通過查看API,我們可以知道 * A:字符串字面值"abc"也可以看成是一個(gè)字符串對(duì)象。 * B:字符串是常量,一旦被賦值,就不能被改變。 * * 構(gòu)造方法: * public String():空構(gòu)造 * public String(byte[] bytes):把字節(jié)數(shù)組轉(zhuǎn)成字符串 * public String(byte[] bytes,int index,int length):把字節(jié)數(shù)組的一部分轉(zhuǎn)成字符串 * public String(char[] value):把字符數(shù)組轉(zhuǎn)成字符串 * public String(char[] value,int index,int count):把字符數(shù)組的一部分轉(zhuǎn)成字符串 * public String(String original):把字符串常量值轉(zhuǎn)成字符串 * * 字符串的方法: * public int length():返回此字符串的長(zhǎng)度。 */ public class StringDemo { public static void main(String[] args) { // public String():空構(gòu)造 String s1 = new String(); System.out.println("s1:" + s1); System.out.println("s1.length():" + s1.length()); System.out.println("--------------------------"); // public String(byte[] bytes):把字節(jié)數(shù)組轉(zhuǎn)成字符串b byte[] bys = { 97, 98, 99, 100, 101 }; String s2 = new String(bys); System.out.println("s2:" + s2); System.out.println("s2.length():" + s2.length()); System.out.println("--------------------------"); // public String(byte[] bytes,int index,int length):把字節(jié)數(shù)組的一部分轉(zhuǎn)成字符串 // 我想得到字符串"bcd" String s3 = new String(bys, 1, 3); System.out.println("s3:" + s3); System.out.println("s3.length():" + s3.length()); Systebbm.out.println("--------------------------"); // public String(char[] value):把字符數(shù)組轉(zhuǎn)成字符串 char[] chs = { 'a', 'b', 'c', 'd', 'e', '愛', '林', '親' }; String s4 = new String(chs); System.out.println("s4:" + s4); System.out.println("s4.length():" + s4.length()); System.out.println("--------------------------"); // public String(char[] value,int index,int count):把字符數(shù)組的一部分轉(zhuǎn)成字符串 String s5 = new String(chs, 2, 4); System.out.println("s5:" + s5); System.out.println("s5.length():" + s5.length()); System.out.println("--------------------------"); //public String(String original):把字符串常量值轉(zhuǎn)成字符串 String s6 = new String("abcde"); System.out.println("s6:" + s6); System.out.println("s6.length():" + s6.length()); System.out.println("--------------------------"); //字符串字面值"abc"也可以看成是一個(gè)字符串對(duì)象。 String s7 = "abcde"; System.out.println("s7:"+s7); System.out.println("s7.length():"+s7.length()); } } ====================================================================== package cn.itcast_02; /* * 字符串的特點(diǎn):一旦被賦值,就不能改變。 */ public class StringDemo { public static void main(String[] args) { String s = "hello"; s += "world"; System.out.println("s:" + s); // helloworld } } ============================================================= package cn.itcast_02; /* * String s = new String(“hello”)和String s = “hello”;的區(qū)別? * 有。前者會(huì)創(chuàng)建2個(gè)對(duì)象,后者創(chuàng)建1個(gè)對(duì)象。 * * ==:比較引用類型比較的是地址值是否相同 * equals:比較引用類型默認(rèn)也是比較地址值是否相同,而String類重寫了equals()方法,比較的是內(nèi)容是否相同。 */ public class StringDemo2 { public static void main(String[] args) { String s1 = new String("hello"); String s2 = "hello"; System.out.println(s1 == s2);// false System.out.println(s1.equals(s2));// true } } ============================================================= package cn.itcast_02; /* * 看程序?qū)懡Y(jié)果 */ public class StringDemo3 { public static void main(String[] args) { String s1 = new String("hello"); String s2 = new String("hello"); System.out.println(s1 == s2);// false System.out.println(s1.equals(s2));// true String s3 = new String("hello"); String s4 = "hello"; System.out.println(s3 == s4);// false System.out.println(s3.equals(s4));// true String s5 = "hello"; String s6 = "hello"; System.out.println(s5 == s6);// true System.out.println(s5.equals(s6));// true } } ===========================================================================package cn.itcast_02; /* * 看程序?qū)懡Y(jié)果 * 字符串如果是變量相加,先開空間,在拼接。 * 字符串如果是常量相加,是先加,然后在常量池找,如果有就直接返回,否則,就創(chuàng)建。 */ public class StringDemo4 { public static void main(String[] args) { String s1 = "hello"; String s2 = "world"; String s3 = "helloworld"; System.out.println(s3 == s1 + s2);// false System.out.println(s3.equals((s1 + s2)));// true System.out.println(s3 == "hello" + "world");// false 這個(gè)我們錯(cuò)了,應(yīng)該是true System.out.println(s3.equals("hello" + "world"));// true // 通過反編譯看源碼,我們知道這里已經(jīng)做好了處理。 // System.out.println(s3 == "helloworld"); // System.out.println(s3.equals("helloworld")); } } ====================================================== package cn.itcast_03; import java.util.Scanner; /* * 這時(shí)猜數(shù)字小游戲的代碼 */ public class GuessNumberGame { private GuessNumberGame() { } public static void start() { // 產(chǎn)生一個(gè)隨機(jī)數(shù) int number = (int) (Math.random() * 100) + 1; while (true) { // 鍵盤錄入數(shù)據(jù) Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入你要猜的數(shù)據(jù)(1-100):"); int guessNumber = sc.nextInt(); // 判斷 if (guessNumber > number) { System.out.println("你猜的數(shù)據(jù)" + guessNumber + "大了"); } else if (guessNumber < number) { System.out.println("你猜的數(shù)據(jù)" + guessNumber + "小了"); } else { System.out.println("恭喜你,猜中了"); break; } } } } ===========================================================================package cn.itcast_03; /* * String類的判斷功能: * boolean equals(Object obj):比較字符串的內(nèi)容是否相同,區(qū)分大小寫 * boolean equalsIgnoreCase(String str):比較字符串的內(nèi)容是否相同,忽略大小寫 * boolean contains(String str):判斷大字符串中是否包含小字符串 * boolean startsWith(String str):判斷字符串是否以某個(gè)指定的字符串開頭 * boolean endsWith(String str):判斷字符串是否以某個(gè)指定的字符串結(jié)尾 * boolean isEmpty():判斷字符串是否為空。 * * 注意: * 字符串內(nèi)容為空和字符串對(duì)象為空。 * String s = ""; * String s = null; */ public class StringDemo { public static void main(String[] args) { // 創(chuàng)建字符串對(duì)象 String s1 = "helloworld"; String s2 = "helloworld"; String s3 = "HelloWorld"; // boolean equals(Object obj):比較字符串的內(nèi)容是否相同,區(qū)分大小寫 System.out.println("equals:" + s1.equals(s2)); System.out.println("equals:" + s1.equals(s3)); System.out.println("-----------------------"); // boolean equalsIgnoreCase(String str):比較字符串的內(nèi)容是否相同,忽略大小寫 System.out.println("equals:" + s1.equalsIgnoreCase(s2)); System.out.println("equals:" + s1.equalsIgnoreCase(s3)); System.out.println("-----------------------"); // boolean contains(String str):判斷大字符串中是否包含小字符串 System.out.println("contains:" + s1.contains("hello")); System.out.println("contains:" + s1.contains("hw"));//要連在一起才行 System.out.println("-----------------------"); // boolean startsWith(String str):判斷字符串是否以某個(gè)指定的字符串開頭 System.out.println("startsWith:" + s1.startsWith("h")); System.out.println("startsWith:" + s1.startsWith("hello")); System.out.println("startsWith:" + s1.startsWith("world")); System.out.println("-----------------------"); // 練習(xí):boolean endsWith(String str):判斷字符串是否以某個(gè)指定的字符串結(jié)尾這個(gè)自己玩 // boolean isEmpty():判斷字符串是否為空。 System.out.println("isEmpty:" + s1.isEmpty()); String s4 = ""; String s5 = null; System.out.println("isEmpty:" + s4.isEmpty()); // NullPointerException // s5對(duì)象都不存在,所以不能調(diào)用方法,空指針異常,見的非常多 System.out.println("isEmpty:" + s5.isEmpty()); } } =========================================================== package cn.itcast_03; import java.util.Scanner; /* * 模擬登錄,給三次機(jī)會(huì),并提示還有幾次。 * * 分析: * A:定義用戶名和密碼。已存在的。 * B:鍵盤錄入用戶名和密碼。 * C:比較用戶名和密碼。 * 如果都相同,則登錄成功 * 如果有一個(gè)不同,則登錄失敗 * D:給三次機(jī)會(huì),用循環(huán)改進(jìn),最好用for循環(huán)。 */ public class StringTest { public static void main(String[] args) { // 定義用戶名和密碼。已存在的。 String username = "admin"; String password = "admin"; // 給三次機(jī)會(huì),用循環(huán)改進(jìn),最好用for循環(huán)。 for (int x = 0; x < 3; x++) { // x=0,1,2 // 鍵盤錄入用戶名和密碼。 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入用戶名:"); String name = sc.nextLine(); System.out.println("請(qǐng)輸入密碼:"); String pwd = sc.nextLine(); // 比較用戶名和密碼。 if (name.equals(username) && pwd.equals(password)) { // 如果都相同,則登錄成功 System.out.println("登錄成功"); break; } else { // 如果有一個(gè)不同,則登錄失敗 // 2,1,0 // 如果是第0次,應(yīng)該換一種提示 if ((2 - x) == 0) { System.out.println("帳號(hào)被鎖定,請(qǐng)與班長(zhǎng)聯(lián)系"); } else { System.out.println("登錄失敗,你還有" + (2 - x) + "次機(jī)會(huì)"); } } } } } =========================================================================== package cn.itcast_03; import java.util.Scanner; /* * 模擬登錄,給三次機(jī)會(huì),并提示還有幾次。如果登錄成功,就可以玩猜數(shù)字小游戲了。 * * 分析: * A:定義用戶名和密碼。已存在的。 * B:鍵盤錄入用戶名和密碼。 * C:比較用戶名和密碼。 * 如果都相同,則登錄成功 * 如果有一個(gè)不同,則登錄失敗 * D:給三次機(jī)會(huì),用循環(huán)改進(jìn),最好用for循環(huán)。 */ public class StringTest2 { public static void main(String[] args) { // 定義用戶名和密碼。已存在的。 String username = "admin"; String password = "admin"; // 給三次機(jī)會(huì),用循環(huán)改進(jìn),最好用for循環(huán)。 for (int x = 0; x < 3; x++) { // x=0,1,2 // 鍵盤錄入用戶名和密碼。 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入用戶名:"); String name = sc.nextLine(); System.out.println("請(qǐng)輸入密碼:"); String pwd = sc.nextLine(); // 比較用戶名和密碼。 if (name.equals(username) && pwd.equals(password)) { // 如果都相同,則登錄成功 System.out.println("登錄成功,開始玩游戲"); //猜數(shù)字游戲 GuessNumberGame.start(); break; } else { // 如果有一個(gè)不同,則登錄失敗 // 2,1,0 // 如果是第0次,應(yīng)該換一種提示 if ((2 - x) == 0) { System.out.println("帳號(hào)被鎖定,請(qǐng)與班長(zhǎng)聯(lián)系"); } else { System.out.println("登錄失敗,你還有" + (2 - x) + "次機(jī)會(huì)"); } } } } } ============================================= Java線程中run和start方法的區(qū)別 Thread類中run()和start()方法的區(qū)別如下: run()方法:在本線程內(nèi)調(diào)用該Runnable對(duì)象的run()方法,可以重復(fù)多次調(diào)用; start()方法:啟動(dòng)一個(gè)線程,調(diào)用該Runnable對(duì)象的run()方法,不能多次啟動(dòng)一個(gè)線程; ============================================================== package cn.itcast_04; /* * String類的獲取功能 * int length():獲取字符串的長(zhǎng)度。 * char charAt(int index):獲取指定索引位置的字符 * int indexOf(int ch):返回指定字符在此字符串中第一次出現(xiàn)處的索引。 * 為什么這里是int類型,而不是char類型? * 原因是:'a'和97其實(shí)都可以代表'a' * int indexOf(String str):返回指定字符串在此字符串中第一次出現(xiàn)處的索引。 * int indexOf(int ch,int fromIndex):返回指定字符在此字符串中從指定位置后第一次出現(xiàn)處的索引。 * int indexOf(String str,int fromIndex):返回指定字符串在此字符串中從指定位置后第一次出現(xiàn)處的索引。 * String substring(int start):從指定位置開始截取字符串,默認(rèn)到末尾。 * String substring(int start,int end):從指定位置開始到指定位置結(jié)束截取字符串。 */ public class StringDemo { public static void main(String[] args) { // 定義一個(gè)字符串對(duì)象 String s = "helloworld"; // int length():獲取字符串的長(zhǎng)度。 System.out.println("s.length:" + s.length()); System.out.println("----------------------"); // char charAt(int index):獲取指定索引位置的字符 System.out.println("charAt:" + s.charAt(7)); System.out.println("----------------------"); // int indexOf(int ch):返回指定字符在此字符串中第一次出現(xiàn)處的索引。 System.out.println("indexOf:" + s.indexOf('l')); System.out.println("----------------------"); // int indexOf(String str):返回指定字符串在此字符串中第一次出現(xiàn)處的索引。 System.out.println("indexOf:" + s.indexOf("owo")); System.out.println("----------------------"); // int indexOf(int ch,int fromIndex):返回指定字符在此字符串中從指定位置后第一次出現(xiàn)處的索引。 System.out.println("indexOf:" + s.indexOf('l', 4)); System.out.println("indexOf:" + s.indexOf('k', 4)); // -1 System.out.println("indexOf:" + s.indexOf('l', 40)); // -1 System.out.println("----------------------"); // 自己練習(xí):int indexOf(String str,int // fromIndex):返回指定字符串在此字符串中從指定位置后第一次出現(xiàn)處的索引。 // String substring(int start):從指定位置開始截取字符串,默認(rèn)到末尾。包含start這個(gè)索引 System.out.println("substring:" + s.substring(5)); System.out.println("substring:" + s.substring(0)); System.out.println("----------------------"); // String substring(int start,int // end):從指定位置開始到指定位置結(jié)束截取字符串。包括start索引但是不包end索引 System.out.println("substring:" + s.substring(3, 8)); System.out.println("substring:" + s.substring(0, s.length())); } } s.length:10 ---------------------- charAt:r ---------------------- indexOf:2 ---------------------- indexOf:4 ---------------------- indexOf:8 indexOf:-1 indexOf:-1 ---------------------- substring:world substring:helloworld ---------------------- substring:lowor substring:helloworld =================================================== package cn.itcast_04; /* * 需求:遍歷獲取字符串中的每一個(gè)字符 * * 分析: * A:如何能夠拿到每一個(gè)字符呢? * char charAt(int index) * B:我怎么知道字符到底有多少個(gè)呢? * int length() */ public class StringTest { public static void main(String[] args) { // 定義字符串 String s = "helloworld"; // 原始版本 // System.out.println(s.charAt(0)); // System.out.println(s.charAt(1)); // System.out.println(s.charAt(2)); // System.out.println(s.charAt(3)); // System.out.println(s.charAt(4)); // System.out.println(s.charAt(5)); // System.out.println(s.charAt(6)); // System.out.println(s.charAt(7)); // System.out.println(s.charAt(8)); // System.out.println(s.charAt(9)); // 只需要我們從0取到9 // for (int x = 0; x < 10; x++) { // System.out.println(s.charAt(x)); // } // 如果長(zhǎng)度特別長(zhǎng),我不可能去數(shù),所以我們要用長(zhǎng)度功能 for (int x = 0; x < s.length(); x++) { // char ch = s.charAt(x); // System.out.println(ch); // 僅僅是輸出,我就直接輸出了 System.out.println(s.charAt(x)); } } } ============================================= package cn.itcast_04; /* * 需求:統(tǒng)計(jì)一個(gè)字符串中大寫字母字符,小寫字母字符,數(shù)字字符出現(xiàn)的次數(shù)。(不考慮其他字符) * 舉例: * "Hello123World" * 結(jié)果: * 大寫字符:2個(gè) * 小寫字符:8個(gè) * 數(shù)字字符:3個(gè) * * 分析: * 前提:字符串要存在 * A:定義三個(gè)統(tǒng)計(jì)變量 * bigCount=0 * smallCount=0 * numberCount=0 * B:遍歷字符串,得到每一個(gè)字符。 * length()和charAt()結(jié)合 * C:判斷該字符到底是屬于那種類型的 * 大:bigCount++ * 小:smallCount++ * 數(shù)字:numberCount++ * * 這道題目的難點(diǎn)就是如何判斷某個(gè)字符是大的,還是小的,還是數(shù)字的。 * ASCII碼表: * 0 48 * A 65 * a 97 * 雖然,我們按照數(shù)字的這種比較是可以的,但是想多了,有比這還簡(jiǎn)單的 * char ch = s.charAt(x); * * if(ch>='0' && ch<='9') numberCount++ * if(ch>='a' && ch<='z') smallCount++ * if(ch>='A' && ch<='Z') bigCount++ * D:輸出結(jié)果。 * * 練習(xí):把給定字符串的方式,改進(jìn)為鍵盤錄入字符串的方式。 */ public class StringTest2 { public static void main(String[] args) { //定義一個(gè)字符串 String s = "Hello123World"; //定義三個(gè)統(tǒng)計(jì)變量 int bigCount = 0; int smallCount = 0; int numberCount = 0; //遍歷字符串,得到每一個(gè)字符。 for(int x=0; x<s.length(); x++){ char ch = s.charAt(x); //判斷該字符到底是屬于那種類型的 if(ch>='a' && ch<='z'){ smallCount++; }else if(ch>='A' && ch<='Z'){ bigCount++; }else if(ch>='0' && ch<='9'){ numberCount++; } } //輸出結(jié)果。 System.out.println("大寫字母"+bigCount+"個(gè)"); System.out.println("小寫字母"+smallCount+"個(gè)"); System.out.println("數(shù)字"+numberCount+"個(gè)"); } } =========================================== package cn.itcast_05; /* * String的轉(zhuǎn)換功能: * byte[] getBytes():把字符串轉(zhuǎn)換為字節(jié)數(shù)組。 * char[] toCharArray():把字符串轉(zhuǎn)換為字符數(shù)組。 * static String valueOf(char[] chs):把字符數(shù)組轉(zhuǎn)成字符串。 * static String valueOf(int i):把int類型的數(shù)據(jù)轉(zhuǎn)成字符串。 * 注意:String類的valueOf方法可以把任意類型的數(shù)據(jù)轉(zhuǎn)成字符串。 * String toLowerCase():把字符串轉(zhuǎn)成小寫。 * String toUpperCase():把字符串轉(zhuǎn)成大寫。 * String concat(String str):把字符串拼接。 */ public class StringDemo { public static void main(String[] args) { // 定義一個(gè)字符串對(duì)象 String s = "JavaSE"; // byte[] getBytes():把字符串轉(zhuǎn)換為字節(jié)數(shù)組。 byte[] bys = s.getBytes(); for (int x = 0; x < bys.length; x++) { System.out.println(bys[x]); } System.out.println("----------------"); // char[] toCharArray():把字符串轉(zhuǎn)換為字符數(shù)組。 char[] chs = s.toCharArray(); for (int x = 0; x < chs.length; x++) { System.out.println(chs[x]); } System.out.println("----------------"); // static String valueOf(char[] chs):把字符數(shù)組轉(zhuǎn)成字符串。 String ss = String.valueOf(chs); System.out.println(ss); System.out.println("----------------"); // static String valueOf(int i):把int類型的數(shù)據(jù)轉(zhuǎn)成字符串。 int i = 100; String sss = String.valueOf(i); System.out.println(sss); System.out.println("----------------"); // String toLowerCase():把字符串轉(zhuǎn)成小寫。 System.out.println("toLowerCase:" + s.toLowerCase()); System.out.println("s:" + s); // System.out.println("----------------"); // String toUpperCase():把字符串轉(zhuǎn)成大寫。 System.out.println("toUpperCase:" + s.toUpperCase()); System.out.println("----------------"); // String concat(String str):把字符串拼接。 String s1 = "hello"; String s2 = "world"; String s3 = s1 + s2; String s4 = s1.concat(s2); System.out.println("s3:"+s3); System.out.println("s4:"+s4); } } 74 97 118 97 83 69 ---------------- J a v a S E ---------------- JavaSE ---------------- 100 ---------------- toLowerCase:javase s:JavaSE toUpperCase:JAVASE ---------------- s3:helloworld s4:helloworld ================================== package cn.itcast_06; public class StringTest1 { public static void main(String[] args) { String s = "helloWORLD"; String s1 = s.substring(0,1); String s2 = s.substring(1); String s3 = s1.toUpperCase(); String s4 = s2.toLowerCase(); String s5 = s3.concat(s4); System.out.println(s5); String result = s.substring(0,1).toUpperCase().concat(s.substring(1).toLowerCase()); System.out.println(result); } } ===========================================================================package cn.itcast_06; /* * String類的其他功能: * * 替換功能: * String replace(char old,char new) * String replace(String old,String new) * * 去除字符串兩空格 * String trim() * * 按字典順序比較兩個(gè)字符串 * int compareTo(String str) * int compareToIgnoreCase(String str) */ public class StringDemo { public static void main(String[] args) { // 替換功能 String s1 = "helloworld"; String s2 = s1.replace('l', 'k'); String s3 = s1.replace("owo", "ak47"); System.out.println("s1:" + s1); System.out.println("s2:" + s2); System.out.println("s3:" + s3); System.out.println("---------------"); // 去除字符串兩空格 String s4 = " hello world "; String s5 = s4.trim(); System.out.println("s4:" + s4 + "---"); System.out.println("s5:" + s5 + "---"); // 按字典順序比較兩個(gè)字符串 String s6 = "hello"; String s7 = "hello"; String s8 = "abc"; String s9 = "xyz"; System.out.println(s6.compareTo(s7));// 0 System.out.println(s6.compareTo(s8));// 7 System.out.println(s6.compareTo(s9));// -16 } } ======================================================= package cn.itcast_06; /* * 如果我們看到問題了,看怎么辦呢? * 看源碼。 */ public class StringTest { public static void main(String[] args) { String s1 = "hello"; String s2 = "hel"; System.out.println(s1.compareTo(s2)); // 2 } } ========================================================== private final char value[]; 字符串會(huì)自動(dòng)轉(zhuǎn)換為一個(gè)字符數(shù)組。 public int compareTo(String anotherString) { //this -- s1 -- "hello" //anotherString -- s2 -- "hel" int len1 = value.length; //this.value.length--s1.toCharArray().length--5 int len2 = anotherString.value.length;//s2.value.length -- s2.toCharArray().length--3 int lim = Math.min(len1, len2); //Math.min(5,3); -- lim=3; char v1[] = value; //s1.toCharArray() char v2[] = anotherString.value; //char v1[] = {'h','e','l','l','o'}; //char v2[] = {'h','e','l'}; int k = 0; while (k < lim) { char c1 = v1[k]; //c1='h','e','l' char c2 = v2[k]; //c2='h','e','l' if (c1 != c2) { return c1 - c2; } k++; } return len1 - len2; //5-3=2;最后長(zhǎng)度相減去、 } String s1 = "hello"; String s2 = "hel"; System.out.println(s1.compareTo(s2)); // 2 ===================================================================== package cn.itcast_07; /* * 需求:把數(shù)組中的數(shù)據(jù)按照指定個(gè)格式拼接成一個(gè)字符串 * 舉例: * int[] arr = {1,2,3}; * 輸出結(jié)果: * "[1, 2, 3]" * 分析: * A:定義一個(gè)字符串對(duì)象,只不過內(nèi)容為空 * B:先把字符串拼接一個(gè)"[" * C:遍歷int數(shù)組,得到每一個(gè)元素 * D:先判斷該元素是否為最后一個(gè) * 是:就直接拼接元素和"]" * 不是:就拼接元素和逗號(hào)以及空格 * E:輸出拼接后的字符串 */ public class StringTest { public static void main(String[] args) { // 前提是數(shù)組已經(jīng)存在 int[] arr = { 1, 2, 3 }; // 定義一個(gè)字符串對(duì)象,只不過內(nèi)容為空 String s = ""; // 先把字符串拼接一個(gè)"[" s += "["; // 遍歷int數(shù)組,得到每一個(gè)元素 for (int x = 0; x < arr.length; x++) { // 先判斷該元素是否為最后一個(gè) if (x == arr.length - 1) { // 就直接拼接元素和"]" s += arr[x]; s += "]"; } else { // 就拼接元素和逗號(hào)以及空格 s += arr[x]; s += ", "; } } // 輸出拼接后的字符串 System.out.println("最終的字符串是:" + s); } } =========================================================================== package cn.itcast_07; /* * 需求:把數(shù)組中的數(shù)據(jù)按照指定個(gè)格式拼接成一個(gè)字符串 * 舉例: * int[] arr = {1,2,3}; * 輸出結(jié)果: * "[1, 2, 3]" * 分析: * A:定義一個(gè)字符串對(duì)象,只不過內(nèi)容為空 * B:先把字符串拼接一個(gè)"[" * C:遍歷int數(shù)組,得到每一個(gè)元素 * D:先判斷該元素是否為最后一個(gè) * 是:就直接拼接元素和"]" * 不是:就拼接元素和逗號(hào)以及空格 * E:輸出拼接后的字符串 * * 把代碼用功能實(shí)現(xiàn)。 */ public class StringTest2 { public static void main(String[] args) { // 前提是數(shù)組已經(jīng)存在 int[] arr = { 1, 2, 3 }; // 寫一個(gè)功能,實(shí)現(xiàn)結(jié)果 String result = arrayToString(arr); System.out.println("最終結(jié)果是:" + result); } /* * 兩個(gè)明確: 返回值類型:String 參數(shù)列表:int[] arr */ public static String arrayToString(int[] arr) { // 定義一個(gè)字符串 String s = ""; // 先把字符串拼接一個(gè)"[" s += "["; // 遍歷int數(shù)組,得到每一個(gè)元素 for (int x = 0; x < arr.length; x++) { // 先判斷該元素是否為最后一個(gè) if (x == arr.length - 1) { // 就直接拼接元素和"]" s += arr[x]; s += "]"; } else { // 就拼接元素和逗號(hào)以及空格 s += arr[x]; s += ", "; } } return s; } } ================================== package cn.itcast_07; import java.util.Scanner; /* * 字符串反轉(zhuǎn) * 舉例:鍵盤錄入”abc” * 輸出結(jié)果:”cba” * * 分析: * A:鍵盤錄入一個(gè)字符串 * B:定義一個(gè)新字符串 * C:倒著遍歷字符串,得到每一個(gè)字符 * a:length()和charAt()結(jié)合 * b:把字符串轉(zhuǎn)成字符數(shù)組 * D:用新字符串把每一個(gè)字符拼接起來 * E:輸出新串 */ public class StringTest3 { public static void main(String[] args) { // 鍵盤錄入一個(gè)字符串 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入一個(gè)字符串:"); String line = sc.nextLine(); /* // 定義一個(gè)新字符串 String result = ""; // 把字符串轉(zhuǎn)成字符數(shù)組 char[] chs = line.toCharArray(); // 倒著遍歷字符串,得到每一個(gè)字符 for (int x = chs.length - 1; x >= 0; x--) { // 用新字符串把每一個(gè)字符拼接起來 result += chs[x]; } // 輸出新串 System.out.println("反轉(zhuǎn)后的結(jié)果是:" + result); */ // 改進(jìn)為功能實(shí)現(xiàn) String s = myReverse(line); System.out.println("實(shí)現(xiàn)功能后的結(jié)果是:" + s); } /* * 兩個(gè)明確: 返回值類型:String 參數(shù)列表:String */ public static String myReverse(String s) { // 定義一個(gè)新字符串 String result = ""; // 把字符串轉(zhuǎn)成字符數(shù)組 char[] chs = s.toCharArray(); // 倒著遍歷字符串,得到每一個(gè)字符 for (int x = chs.length - 1; x >= 0; x--) { // 用新字符串把每一個(gè)字符拼接起來 result += chs[x]; } return result; } } ======================================================= package cn.itcast_07; /* * 統(tǒng)計(jì)大串中小串出現(xiàn)的次數(shù) * 舉例: * 在字符串"woaijavawozhenaijavawozhendeaijavawozhendehenaijavaxinbuxinwoaijavagun" * 結(jié)果: * java出現(xiàn)了5次 * * 分析: * 前提:是已經(jīng)知道了大串和小串。 * * A:定義一個(gè)統(tǒng)計(jì)變量,初始化值是0 * B:先在大串中查找一次小串第一次出現(xiàn)的位置 * a:索引是-1,說明不存在了,就返回統(tǒng)計(jì)變量 * b:索引不是-1, 說明存在,統(tǒng)計(jì)變量++ * C:把剛才的索引+小串的長(zhǎng)度作為開始位置截取上一次的大串,返回一個(gè)新的字符串,并把該字符串的值重新賦值給大串 * D:回到B */ public class StringTest4 { public static void main(String[] args) { // 定義大串 String maxString = "woaijavawozhenaijavawozhendeaijavawozhendehenaijavaxinbuxinwoaijavagun"; // 定義小串 String minString = "java"; // 寫功能實(shí)現(xiàn) int count = getCount(maxString, minString); System.out.println("Java在大串中出現(xiàn)了:" + count + "次"); } /* * 兩個(gè)明確: 返回值類型:int 參數(shù)列表:兩個(gè)字符串 */ public static int getCount(String maxString, String minString) { // 定義一個(gè)統(tǒng)計(jì)變量,初始化值是0 int count = 0; // 先在大串中查找一次小串第一次出現(xiàn)的位置 int index = maxString.indexOf(minString); // 索引不是-1,說明存在,統(tǒng)計(jì)變量++ while (index != -1) { count++; // 把剛才的索引+小串的長(zhǎng)度作為開始位置截取上一次的大串,返回一個(gè)新的字符串,并把該字符串的值重新賦值給大串 int startIndex = index + minString.length(); maxString = maxString.substring(startIndex); // 繼續(xù)查 index = maxString.indexOf(minString); } return count; } } 2.Arrays Character StringBuffer package cn.itcast_01; /* * 數(shù)組排序之冒泡排序: * 相鄰元素兩兩比較,大的往后放,第一次完畢,最大值出現(xiàn)在了最大索引處 */ public class ArrayDemo { public static void main(String[] args) { // 定義一個(gè)數(shù)組 int[] arr = { 24, 69, 80, 57, 13 }; System.out.println("排序前:"); printArray(arr); /* // 第一次比較 // arr.length - 1是為了防止數(shù)據(jù)越界 // arr.length - 1 - 0是為了減少比較的次數(shù) for (int x = 0; x < arr.length - 1 - 0; x++) { if (arr[x] > arr[x + 1]) { int temp = arr[x]; arr[x] = arr[x + 1]; arr[x + 1] = temp; } } System.out.println("第一次比較后:"); printArray(arr); // 第二次比較 // arr.length - 1是為了防止數(shù)據(jù)越界 // arr.length - 1 - 1是為了減少比較的次數(shù) for (int x = 0; x < arr.length - 1 - 1; x++) { if (arr[x] > arr[x + 1]) { int temp = arr[x]; arr[x] = arr[x + 1]; arr[x + 1] = temp; } } System.out.println("第二次比較后:"); printArray(arr); // 第三次比較 // arr.length - 1是為了防止數(shù)據(jù)越界 // arr.length - 1 - 2是為了減少比較的次數(shù) for (int x = 0; x < arr.length - 1 - 2; x++) { if (arr[x] > arr[x + 1]) { int temp = arr[x]; arr[x] = arr[x + 1]; arr[x + 1] = temp; } } System.out.println("第三次比較后:"); printArray(arr); // 第四次比較 // arr.length - 1是為了防止數(shù)據(jù)越界 // arr.length - 1 - 3是為了減少比較的次數(shù) for (int x = 0; x < arr.length - 1 - 3; x++) { if (arr[x] > arr[x + 1]) { int temp = arr[x]; arr[x] = arr[x + 1]; arr[x + 1] = temp; } } System.out.println("第四次比較后:"); printArray(arr); */ // 既然聽懂了,那么上面的代碼就是排序代碼 // 而上面的代碼重復(fù)度太高了,所以用循環(huán)改進(jìn) // for (int y = 0; y < 4; y++) { // for (int x = 0; x < arr.length - 1 - y; x++) { // if (arr[x] > arr[x + 1]) { // int temp = arr[x]; // arr[x] = arr[x + 1]; // arr[x + 1] = temp; // } // } // } /* // 由于我們知道比較的次數(shù)是數(shù)組長(zhǎng)度-1次,所以改進(jìn)最終版程序 for (int x = 0; x < arr.length - 1; x++) { for (int y = 0; y < arr.length - 1 - x; y++) { if (arr[y] > arr[y + 1]) { int temp = arr[y]; arr[y] = arr[y + 1]; arr[y + 1] = temp; } } } System.out.println("排序后:"); printArray(arr); */ //由于我可能有多個(gè)數(shù)組要排序,所以我要寫成方法 bubbleSort(arr); System.out.println("排序后:"); printArray(arr); } //冒泡排序代碼 public static void bubbleSort(int[] arr){ for (int x = 0; x < arr.length - 1; x++) { for (int y = 0; y < arr.length - 1 - x; y++) { if (arr[y] > arr[y + 1]) { int temp = arr[y]; arr[y] = arr[y + 1]; arr[y + 1] = temp; } } } } // 遍歷功能 public static void printArray(int[] arr) { System.out.print("["); for (int x = 0; x < arr.length; x++) { if (x == arr.length - 1) { System.out.print(arr[x]); } else { System.out.print(arr[x] + ", "); } } System.out.println("]"); } } ======================================================== package cn.itcast_02; /* * 數(shù)組排序之選擇排序: * 從0索引開始,依次和后面元素比較,小的往前放,第一次完畢,最小值出現(xiàn)在了最小索引處 */ public class ArrayDemo { public static void main(String[] args) { // 定義一個(gè)數(shù)組 int[] arr = { 24, 69, 80, 57, 13 }; System.out.println("排序前:"); printArray(arr); /* // 第一次 int x = 0; for (int y = x + 1; y < arr.length; y++) { if (arr[y] < arr[x]) { int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } System.out.println("第一次比較后:"); printArray(arr); // 第二次 x = 1; for (int y = x + 1; y < arr.length; y++) { if (arr[y] < arr[x]) { int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } System.out.println("第二次比較后:"); printArray(arr); // 第三次 x = 2; for (int y = x + 1; y < arr.length; y++) { if (arr[y] < arr[x]) { int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } System.out.println("第三次比較后:"); printArray(arr); // 第四次 x = 3; for (int y = x + 1; y < arr.length; y++) { if (arr[y] < arr[x]) { int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } System.out.println("第四次比較后:"); printArray(arr); */ /* //通過觀察發(fā)現(xiàn)代碼的重復(fù)度太高,所以用循環(huán)改進(jìn) for(int x=0; x<arr.length-1; x++){ for(int y=x+1; y<arr.length; y++){ if(arr[y] <arr[x]){ int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } } System.out.println("排序后:"); printArray(arr); */ //用方法改進(jìn) selectSort(arr); System.out.println("排序后:"); printArray(arr); } public static void selectSort(int[] arr){ for(int x=0; x<arr.length-1; x++){ for(int y=x+1; y<arr.length; y++){ if(arr[y] <arr[x]){ int temp = arr[x]; arr[x] = arr[y]; arr[y] = temp; } } } } // 遍歷功能 public static void printArray(int[] arr) { System.out.print("["); for (int x = 0; x < arr.length; x++) { if (x == arr.length - 1) { System.out.print(arr[x]); } else { System.out.print(arr[x] + ", "); } } System.out.println("]"); } } =========================================================== package cn.itcast_03; /* * 把字符串中的字符進(jìn)行排序。 * 舉例:"dacgebf" * 結(jié)果:"abcdefg" * * 分析: * A:定義一個(gè)字符串 * B:把字符串轉(zhuǎn)換為字符數(shù)組toCharArray() * C:把字符數(shù)組進(jìn)行排序 * D:把排序后的字符數(shù)組轉(zhuǎn)成字符串valueOf(chs) * E:輸出最后的字符串 */ public class ArrayTest { public static void main(String[] args) { // 定義一個(gè)字符串 String s = "dacgebf"; // 把字符串轉(zhuǎn)換為字符數(shù)組 char[] chs = s.toCharArray(); // 把字符數(shù)組進(jìn)行排序 bubbleSort(chs); //把排序后的字符數(shù)組轉(zhuǎn)成字符串 String result = String.valueOf(chs); //輸出最后的字符串 System.out.println("result:"+result); } // 冒泡排序 public static void bubbleSort(char[] chs) { for (int x = 0; x < chs.length - 1; x++) { for (int y = 0; y < chs.length - 1 - x; y++) { if (chs[y] > chs[y + 1]) { char temp = chs[y]; chs[y] = chs[y + 1]; chs[y + 1] = temp; } } } } } ============================================= package cn.itcast_04; /* * 查找: * 基本查找:數(shù)組元素?zé)o序(從頭找到尾) * 二分查找(折半查找):數(shù)組元素有序 * * 分析: * A:定義最大索引,最小索引 * B:計(jì)算出中間索引 * C:拿中間索引的值和要查找的值進(jìn)行比較 * 相等:就返回當(dāng)前的中間索引 * 不相等: * 大 左邊找 * 小 右邊找 * D:重新計(jì)算出中間索引 * 大 左邊找 * max = mid - 1; * 小 右邊找 * min = mid + 1; * E:回到B */ public class ArrayDemo { public static void main(String[] args) { //定義一個(gè)數(shù)組 int[] arr = {11,22,33,44,55,66,77}; //寫功能實(shí)現(xiàn) int index = getIndex(arr, 33); System.out.println("index:"+index); //假如這個(gè)元素不存在后有什么現(xiàn)象呢? index = getIndex(arr, 333); System.out.println("index:"+index); } /* * 兩個(gè)明確: * 返回值類型:int * 參數(shù)列表:int[] arr,int value */ public static int getIndex(int[] arr,int value){ //定義最大索引,最小索引 int max = arr.length -1; int min = 0; //計(jì)算出中間索引 int mid = (max +min)/2; //拿中間索引的值和要查找的值進(jìn)行比較 while(arr[mid] != value){ if(arr[mid]>value){ max = mid - 1; }else if(arr[mid]<value){ min = mid + 1; } //加入判斷 if(min > max){ return -1; } mid = (max +min)/2; } return mid; } } ===========================================================================package cn.itcast_04; /* * 注意:下面這種做法是有問題的。 * 因?yàn)閿?shù)組本身是無序的,所以這種情況下的查找不能使用二分查找。 * 所以你先排序了,但是你排序的時(shí)候已經(jīng)改變了我最原始的元素索引。 */ public class ArrayDemo2 { public static void main(String[] args) { // 定義數(shù)組 int[] arr = { 24, 69, 80, 57, 13 }; // 先排序 bubbleSort(arr); // 后查找 int index = getIndex(arr, 80); System.out.println("index:" + index); } // 冒泡排序代碼 public static void bubbleSort(int[] arr) { for (int x = 0; x < arr.length - 1; x++) { for (int y = 0; y < arr.length - 1 - x; y++) { if (arr[y] > arr[y + 1]) { int temp = arr[y]; arr[y] = arr[y + 1]; arr[y + 1] = temp; } } } } // 二分查找 public static int getIndex(int[] arr, int value) { // 定義最大索引,最小索引 int max = arr.length - 1; int min = 0; // 計(jì)算出中間索引 int mid = (max + min) / 2; // 拿中間索引的值和要查找的值進(jìn)行比較 while (arr[mid] != value) { if (arr[mid] > value) { max = mid - 1; } else if (arr[mid] < value) { min = mid + 1; } // 加入判斷 if (min > max) { return -1; } mid = (max + min) / 2; } return mid; } } ======================================================== package cn.itcast_05; import java.util.Arrays; /* * Arrays:針對(duì)數(shù)組進(jìn)行操作的工具類。比如說排序和查找。 * 1:public static String toString(int[] a) 把數(shù)組轉(zhuǎn)成字符串 * 2:public static void sort(int[] a) 對(duì)數(shù)組進(jìn)行排序 * 3:public static int binarySearch(int[] a,int key) 二分查找 */ public class ArraysDemo { public static void main(String[] args) { // 定義一個(gè)數(shù)組 int[] arr = { 24, 69, 80, 57, 13 }; // public static String toString(int[] a) 把數(shù)組轉(zhuǎn)成字符串 System.out.println("排序前:" + Arrays.toString(arr)); // public static void sort(int[] a) 對(duì)數(shù)組進(jìn)行排序 Arrays.sort(arr); System.out.println("排序后:" + Arrays.toString(arr)); // [13, 24, 57, 69, 80] // public static int binarySearch(int[] a,int key) 二分查找 System.out.println("binarySearch:" + Arrays.binarySearch(arr, 57)); System.out.println("binarySearch:" + Arrays.binarySearch(arr, 577)); } } ====================================================================== public static String toString(int[] a) public static void sort(int[] a) 底層是快速排序,知道就可以了。有空看,有問題再問我 public static int binarySearch(int[] a,int key) 開發(fā)原則: 只要是對(duì)象,我們就要判斷該對(duì)象是否為null。 int[] arr = { 24, 69, 80, 57, 13 }; System.out.println("排序前:" + Arrays.toString(arr)); public static String toString(int[] a) { //a -- arr -- { 24, 69, 80, 57, 13 } if (a == null) return "null"; //說明數(shù)組對(duì)象不存在 int iMax = a.length - 1; //iMax=4; if (iMax == -1) return "[]"; //說明數(shù)組存在,但是沒有元素。 StringBuilder b = new StringBuilder(); b.append('['); //"[" for (int i = 0; ; i++) { b.append(a[i]); //"[24, 69, 80, 57, 13" if (i == iMax) //"[24, 69, 80, 57, 13]" return b.append(']').toString(); b.append(", "); //"[24, 69, 80, 57, " } } ----------------------------------------------------- int[] arr = {13, 24, 57, 69, 80}; System.out.println("binarySearch:" + Arrays.binarySearch(arr, 577)); public static int binarySearch(int[] a, int key) { //a -- arr -- {13, 24, 57, 69, 80} //key -- 577 return binarySearch0(a, 0, a.length, key); } private static int binarySearch0(int[] a, int fromIndex, int toIndex, int key) { //a -- arr -- {13, 24, 57, 69, 80} //fromIndex -- 0 //toIndex -- 5 //key -- 577 int low = fromIndex; //low=0 int high = toIndex - 1; //high=4 while (low <= high) { int mid = (low + high) >>> 1; //mid=2,mid=3,mid=4 int midVal = a[mid]; //midVal=57,midVal=69,midVal=80 if (midVal < key) low = mid + 1; //low=3,low=4,low=5 else if (midVal > key) high = mid - 1; else return mid; // key found } return -(low + 1); // key not found. } ================================================================= package cn.itcast_01; /* * Character 類在對(duì)象中包裝一個(gè)基本類型 char 的值 * 此外,該類提供了幾種方法,以確定字符的類別(小寫字母,數(shù)字,等等),并將字符從大寫轉(zhuǎn)換成小寫,反之亦然 * * 構(gòu)造方法: * Character(char value) */ public class CharacterDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 // Character ch = new Character((char) 97); Character ch = new Character('a'); System.out.println("ch:" + ch); } } ======================================================================== package cn.itcast_02; /* * public static boolean isUpperCase(char ch):判斷給定的字符是否是大寫字符 * public static boolean isLowerCase(char ch):判斷給定的字符是否是小寫字符 * public static boolean isDigit(char ch):判斷給定的字符是否是數(shù)字字符 * public static char toUpperCase(char ch):把給定的字符轉(zhuǎn)換為大寫字符 * public static char toLowerCase(char ch):把給定的字符轉(zhuǎn)換為小寫字符 */ public class CharacterDemo { public static void main(Stri ng[] args) { // public static boolean isUpperCase(char ch):判斷給定的字符是否是大寫字符 System.out.println("isUpperCase:" + Character.isUpperCase('A')); System.out.println("isUpperCase:" + Character.isUpperCase('a')); System.out.println("isUpperCase:" + Character.isUpperCase('0')); System.out.println("-----------------------------------------"); // public static boolean isLowerCase(char ch):判斷給定的字符是否是小寫字符 System.out.println("isLowerCase:" + Character.isLowerCase('A')); System.out.println("isLowerCase:" + Character.isLowerCase('a')); System.out.println("isLowerCase:" + Character.isLowerCase('0')); System.out.println("-----------------------------------------"); // public static boolean isDigit(char ch):判斷給定的字符是否是數(shù)字字符 System.out.println("isDigit:" + Character.isDigit('A')); System.out.println("isDigit:" + Character.isDigit('a')); System.out.println("isDigit:" + Character.isDigit('0')); System.out.println("-----------------------------------------"); // public static char toUpperCase(char ch):把給定的字符轉(zhuǎn)換為大寫字符 System.out.println("toUpperCase:" + Character.toUpperCase('A')); System.out.println("toUpperCase:" + Character.toUpperCase('a')); System.out.println("-----------------------------------------"); // public static char toLowerCase(char ch):把給定的字符轉(zhuǎn)換為小寫字符 System.out.println("toLowerCase:" + Character.toLowerCase('A')); System.out.println("toLowerCase:" + Character.toLowerCase('a')); } } =========================================================================== package cn.itcast_03; import java.util.Scanner; /* * 統(tǒng)計(jì)一個(gè)字符串中大寫字母字符,小寫字母字符,數(shù)字字符出現(xiàn)的次數(shù)。(不考慮其他字符) * * 分析: * A:定義三個(gè)統(tǒng)計(jì)變量。 * int bigCont=0; * int smalCount=0; * int numberCount=0; * B:鍵盤錄入一個(gè)字符串。 * C:把字符串轉(zhuǎn)換為字符數(shù)組。 * D:遍歷字符數(shù)組獲取到每一個(gè)字符 * E:判斷該字符是 * 大寫 bigCount++; * 小寫 smalCount++; * 數(shù)字 numberCount++; * F:輸出結(jié)果即可 */ public class CharacterTest { public static void main(String[] args) { // 定義三個(gè)統(tǒng)計(jì)變量。 int bigCount = 0; int smallCount = 0; int numberCount = 0; // 鍵盤錄入一個(gè)字符串。 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入一個(gè)字符串:"); String line = sc.nextLine(); // 把字符串轉(zhuǎn)換為字符數(shù)組。 char[] chs = line.toCharArray(); // 歷字符數(shù)組獲取到每一個(gè)字符 for (int x = 0; x < chs.length; x++) { char ch = chs[x]; // 判斷該字符 if (Character.isUpperCase(ch)) { bigCount++; } else if (Character.isLowerCase(ch)) { smallCount++; } else if (Character.isDigit(ch)) { numberCount++; } } // 輸出結(jié)果即可 System.out.println("大寫字母:" + bigCount + "個(gè)"); System.out.println("小寫字母:" + smallCount + "個(gè)"); System.out.println("數(shù)字字符:" + numberCount + "個(gè)"); } } ================================================================ package cn.itcast_01; / public class IntegerDemo { public static void main(String[] args) { // 不麻煩的就來了 // public static String toBinaryString(int i) System.out.println(Integer.toBinaryString(100)); // public static String toOctalString(int i) System.out.println(Integer.toOctalString(100)); // public static String toHexString(int i) System.out.println(Integer.toHexString(100)); // public static final int MAX_VALUE System.out.println(Integer.MAX_VALUE); // public static final int MIN_VALUE System.out.println(Integer.MIN_VALUE); } } 1100100 144 64 2147483647 -2147483648 ======================================================================== package cn.itcast_02; /* * Integer的構(gòu)造方法: * public Integer(int value) * public Integer(String s) * 注意:這個(gè)字符串必須是由數(shù)字字符組成 */ public class IntegerDemo { public static void main(String[] args) { // 方式1 int i = 100; Integer ii = new Integer(i); System.out.println("ii:" + ii); // 方式2 String s = "100"; // NumberFormatException // String s = "abc"; Integer iii = new Integer(s); System.out.println("iii:" + iii); } } ===========================================================================s1:100 s2:100 s3:100 s4:100 ----------------- x:100 y:100 ========================================== package cn.itcast_04; /* * 常用的基本進(jìn)制轉(zhuǎn)換 * public static String toBinaryString(int i) * public static String toOctalString(int i) * public static String toHexString(int i) * * 十進(jìn)制到其他進(jìn)制 * public static String toString(int i,int radix) * 由這個(gè)我們也看到了進(jìn)制的范圍:2-36 * 為什么呢?0,...9,a...z * * 其他進(jìn)制到十進(jìn)制 * public static int parseInt(String s,int radix) */ public class IntegerDemo { public static void main(String[] args) { // 十進(jìn)制到二進(jìn)制,八進(jìn)制,十六進(jìn)制 System.out.println(Integer.toBinaryString(100)); System.out.println(Integer.toOctalString(100)); System.out.println(Integer.toHexString(100)); System.out.println("-------------------------"); // 十進(jìn)制到其他進(jìn)制 System.out.println(Integer.toString(100, 10)); System.out.println(Integer.toString(100, 2)); System.out.println(Integer.toString(100, 8)); System.out.println(Integer.toString(100, 16)); System.out.println(Integer.toString(100, 5)); System.out.println(Integer.toString(100, 7)); System.out.println(Integer.toString(100, -7)); System.out.println(Integer.toString(100, 70)); System.out.println(Integer.toString(100, 1)); System.out.println(Integer.toString(100, 17)); System.out.println(Integer.toString(100, 32)); System.out.println(Integer.toString(100, 37)); System.out.println(Integer.toString(100, 36)); System.out.println("-------------------------"); //其他進(jìn)制到十進(jìn)制 System.out.println(Integer.parseInt("100", 10)); System.out.println(Integer.parseInt("100", 2)); System.out.println(Integer.parseInt("100", 8)); System.out.println(Integer.parseInt("100", 16)); System.out.println(Integer.parseInt("100", 23)); //NumberFormatException //System.out.println(Integer.parseInt("123", 2)); } } ======================================================================= package cn.itcast_05; /* * JDK5的新特性 * 自動(dòng)裝箱:把基本類型轉(zhuǎn)換為包裝類類型 * 自動(dòng)拆箱:把包裝類類型轉(zhuǎn)換為基本類型 * * 注意一個(gè)小問題: * 在使用時(shí),Integer x = null;代碼就會(huì)出現(xiàn)NullPointerException。 * 建議先判斷是否為null,然后再使用。 */ public class IntegerDemo { public static void main(String[] args) { // 定義了一個(gè)int類型的包裝類類型變量i // Integer i = new Integer(100); Integer ii = 100; ii += 200; System.out.println("ii:" + ii); // 通過反編譯后的代碼 // Integer ii = Integer.valueOf(100); //自動(dòng)裝箱 // ii = Integer.valueOf(ii.intValue() + 200); //自動(dòng)拆箱,再自動(dòng)裝箱 // System.out.println((new StringBuilder("ii:")).append(ii).toString()); Integer iii = null; // NullPointerException if (iii != null) { iii += 1000; System.out.println(iii); } } } ===========================================================================package cn.itcast_06; /* * 看程序?qū)懡Y(jié)果 * * 注意:Integer的數(shù)據(jù)直接賦值,如果在-128到127之間,會(huì)直接從緩沖池里獲取數(shù)據(jù) */ public class IntegerDemo { public static void main(String[] args) { Integer i1 = new Integer(127); Integer i2 = new Integer(127); System.out.println(i1 == i2); System.out.println(i1.equals(i2)); System.out.println("-----------"); Integer i3 = new Integer(128); Integer i4 = new Integer(128); System.out.println(i3 == i4); System.out.println(i3.equals(i4)); System.out.println("-----------"); Integer i5 = 128; Integer i6 = 128; System.out.println(i5 == i6); System.out.println(i5.equals(i6)); System.out.println("-----------"); Integer i7 = 127; Integer i8 = 127; System.out.println(i7 == i8); System.out.println(i7.equals(i8)); // 通過查看源碼,我們就知道了,針對(duì)-128到127之間的數(shù)據(jù),做了一個(gè)數(shù)據(jù)緩沖池,如果數(shù)據(jù)是該范圍內(nèi)的,每次并不創(chuàng)建新的空間 // Integer ii = Integer.valueOf(127); } } false true ----------- false true ----------- false true ----------- true true ======================================================================== package cn.itcast_01; System.out.println("--------------------------"); // public StringBuffer(int capacity):指定容量的字符串緩沖區(qū)對(duì)象 StringBuffer sb2 = new StringBuffer(50); System.out.println("sb2:" + sb2); System.out.println("sb2.capacity():" + sb2.capacity()); System.out.println("sb2.length():" + sb2.length()); System.out.println("--------------------------"); // public StringBuffer(String str):指定字符串內(nèi)容的字符串緩沖區(qū)對(duì)象 StringBuffer sb3 = new StringBuffer("hello"); System.out.println("sb3:" + sb3); System.out.println("sb3.capacity():" + sb3.capacity()); System.out.println("sb3.length():" + sb3.length()); } } ======================================= package cn.itcast_02; /* * StringBuffer的添加功能: * public StringBuffer append(String str):可以把任意類型數(shù)據(jù)添加到字符串緩沖區(qū)里面,并返回字符串緩沖區(qū)本身 * * public StringBuffer insert(int offset,String str):在指定位置把任意類型的數(shù)據(jù)插入到字符串緩沖區(qū)里面,并返回字符串緩沖區(qū)本身 */ public class StringBufferDemo { public static void main(String[] args) { // 創(chuàng)建字符串緩沖區(qū)對(duì)象 StringBuffer sb = new StringBuffer(); // public StringBuffer append(String str) // StringBuffer sb2 = sb.append("hello"); // System.out.println("sb:" + sb); // System.out.println("sb2:" + sb2); // System.out.println(sb == sb2); // true // 一步一步的添加數(shù)據(jù) // sb.append("hello"); // sb.append(true); // sb.append(12); // sb.append(34.56); // 鏈?zhǔn)骄幊? sb.append("hello").append(true).append(12).append(34.56); System.out.println("sb:" + sb); // public StringBuffer insert(int offset,String // str):在指定位置把任意類型的數(shù)據(jù)插入到字符串緩沖區(qū)里面,并返回字符串緩沖區(qū)本身 sb.insert(5, "world"); System.out.println("sb:" + sb); } } ========================================================= package cn.itcast_03; /* * StringBuffer的刪除功能 * public StringBuffer deleteCharAt(int index):刪除指定位置的字符,并返回本身 * public StringBuffer delete(int start,int end):刪除從指定位置開始指定位置結(jié)束的內(nèi)容,并返回本身 */ public class StringBufferDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 StringBuffer sb = new StringBuffer(); // 添加功能 sb.append("hello").append("world").append("java"); System.out.println("sb:" + sb); // public StringBuffer deleteCharAt(int index):刪除指定位置的字符,并返回本身 // 需求:我要?jiǎng)h除e這個(gè)字符,腫么辦? // sb.deleteCharAt(1); // 需求:我要?jiǎng)h除第一個(gè)l這個(gè)字符,腫么辦? // sb.deleteCharAt(1); // public StringBuffer delete(int start,int // end):刪除從指定位置開始指定位置結(jié)束的內(nèi)容,并返回本身 // 需求:我要?jiǎng)h除world這個(gè)字符串,腫么辦?包左不包右邊 // sb.delete(5, 10); // 需求:我要?jiǎng)h除所有的數(shù)據(jù) sb.delete(0, sb.length()); System.out.println("sb:" + sb); } } ===================================================================== package cn.itcast_04; /* * StringBuffer的替換功能: * public StringBuffer replace(int start,int end,String str):從start開始到end用str替換 */ public class StringBufferDemo { public static void main(String[] args) { // 創(chuàng)建字符串緩沖區(qū)對(duì)象 StringBuffer sb = new StringBuffer(); // 添加數(shù)據(jù) sb.append("hello"); sb.append("world"); sb.append("java"); System.out.println("sb:" + sb); // public StringBuffer replace(int start,int end,String // str):從start開始到end用str替換 // 需求:我要把world這個(gè)數(shù)據(jù)替換為"節(jié)日快樂" sb.replace(5, 10, "節(jié)日快樂"); System.out.println("sb:" + sb); } } ===================================================================== package cn.itcast_05; /* * StringBuffer的反轉(zhuǎn)功能: * public StringBuffer reverse() */ public class StringBufferDemo { public static void main(String[] args) { // 創(chuàng)建字符串緩沖區(qū)對(duì)象 StringBuffer sb = new StringBuffer(); // 添加數(shù)據(jù) sb.append("霞青林愛我"); System.out.println("sb:" + sb); // public StringBuffer reverse() sb.reverse(); System.out.println("sb:" + sb); } } ================================================================ package cn.itcast_06; /* * StringBuffer的截取功能:注意返回值類型不再是StringBuffer本身了 * public String substring(int start) * public String substring(int start,int end) */ public class StringBufferDemo { public static void main(String[] args) { // 創(chuàng)建字符串緩沖區(qū)對(duì)象 StringBuffer sb = new StringBuffer(); // 添加元素 sb.append("hello").append("world").append("java"); System.out.println("sb:" + sb); // 截取功能 // public String substring(int start) String s = sb.substring(5); System.out.println("s:" + s); System.out.println("sb:" + sb); // public String substring(int start,int end) String ss = sb.substring(5, 10); System.out.println("ss:" + ss); System.out.println("sb:" + sb); } } ===================================== package cn.itcast_07; /* * 為什么我們要講解類之間的轉(zhuǎn)換: * A -- B的轉(zhuǎn)換 * 我們把A轉(zhuǎn)換為B,其實(shí)是為了使用B的功能。 * B -- A的轉(zhuǎn)換 * 我們可能要的結(jié)果是A類型,所以還得轉(zhuǎn)回來。 * * String和StringBuffer的相互轉(zhuǎn)換? */ public class StringBufferTest { public static void main(String[] args) { // String -- StringBuffer String s = "hello"; // 注意:不能把字符串的值直接賦值給StringBuffer // StringBuffer sb = "hello"; // StringBuffer sb = s; // 方式1:通過構(gòu)造方法 StringBuffer sb = new StringBuffer(s); // 方式2:通過append()方法 StringBuffer sb2 = new StringBuffer(); sb2.append(s); System.out.println("sb:" + sb); System.out.println("sb2:" + sb2); System.out.println("---------------"); // StringBuffer -- String StringBuffer buffer = new StringBuffer("java"); // String(StringBuffer buffer) // 方式1:通過構(gòu)造方法 String str = new String(buffer); // 方式2:通過toString()方法 String str2 = buffer.toString(); System.out.println("str:" + str); System.out.println("str2:" + str2); } } ===========================================================================package cn.itcast_07; /* * 把數(shù)組拼接成一個(gè)字符串 */ public class StringBufferTest2 { public static void main(String[] args) { // 定義一個(gè)數(shù)組 int[] arr = { 44, 33, 55, 11, 22 }; // 定義功能 // 方式1:用String做拼接的方式 String s1 = arrayToString(arr); System.out.println("s1:" + s1); // 方式2:用StringBuffer做拼接的方式 String s2 = arrayToString2(arr); System.out.println("s2:" + s2); } // 用StringBuffer做拼接的方式 public static String arrayToString2(int[] arr) { StringBuffer sb = new StringBuffer(); sb.append("["); for (int x = 0; x < arr.length; x++) { if (x == arr.length - 1) { sb.append(arr[x]); } else { sb.append(arr[x]).append(", "); } } sb.append("]"); return sb.toString(); } // 用String做拼接的方式 public static String arrayToString(int[] arr) { String s = ""; s += "["; for (int x = 0; x < arr.length; x++) { if (x == arr.length - 1) { s += arr[x]; } else { s += arr[x]; s += ", "; } } s += "]"; return s; } } =================================================================== package cn.itcast_07; import java.util.Scanner; /* * 把字符串反轉(zhuǎn) */ public class StringBufferTest3 { public static void main(String[] args) { // 鍵盤錄入數(shù)據(jù) Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入數(shù)據(jù):"); String s = sc.nextLine(); // 方式1:用String做拼接 String s1 = myReverse(s); System.out.println("s1:" + s1); // 方式2:用StringBuffer的reverse()功能 String s2 = myReverse2(s); System.out.println("s2:" + s2); } // 用StringBuffer的reverse()功能 public static String myReverse2(String s) { // StringBuffer sb = new StringBuffer(); // sb.append(s); // StringBuffer sb = new StringBuffer(s); // sb.reverse(); // return sb.toString(); // 簡(jiǎn)易版 return new StringBuffer(s).reverse().toString(); } // 用String做拼接 public static String myReverse(String s) { String result = ""; char[] chs = s.toCharArray(); for (int x = chs.length - 1; x >= 0; x--) { // char ch = chs[x]; // result += ch; result += chs[x]; } return result; } } ===================================================================== package cn.itcast_08; /* * 面試題: * 1:String,StringBuffer,StringBuilder的區(qū)別? * A:String是內(nèi)容不可變的,而StringBuffer,StringBuilder都是內(nèi)容可變的。 * B:StringBuffer是同步的,數(shù)據(jù)安全,效率低;StringBuilder是不同步的,數(shù)據(jù)不安全,效率高 * * 2:StringBuffer和數(shù)組的區(qū)別? * 二者都可以看出是一個(gè)容器,裝其他的數(shù)據(jù)。 * 但是呢,StringBuffer的數(shù)據(jù)最終是一個(gè)字符串?dāng)?shù)據(jù)。 * 而數(shù)組可以放置多種數(shù)據(jù),但必須是同一種數(shù)據(jù)類型的。 * * 3:形式參數(shù)問題 * String作為參數(shù)傳遞 * StringBuffer作為參數(shù)傳遞 * * 形式參數(shù): * 基本類型:形式參數(shù)的改變不影響實(shí)際參數(shù) * 引用類型:形式參數(shù)的改變直接影響實(shí)際參數(shù) * * 注意: * String作為參數(shù)傳遞,效果和基本類型作為參數(shù)傳遞是一樣的。不變的 */ public class StringBufferDemo { public static void main(String[] args) { String s1 = "hello"; String s2 = "world"; System.out.println(s1 + "---" + s2);// hello---world change(s1, s2);//常量 System.out.println(s1 + "---" + s2);// hello---world StringBuffer sb1 = new StringBuffer("hello"); StringBuffer sb2 = new StringBuffer("world"); System.out.println(sb1 + "---" + sb2);// hello---world change(sb1, sb2); System.out.println(sb1 + "---" + sb2);// hello---worldworld } public static void change(StringBuffer sb1, StringBuffer sb2) { sb1 = sb2; sb2.append(sb1); } public static void change(String s1, String s2) { s1 = s2; s2 = s1 + s2; } } 3.BigDecimal Calendar Math System package cn.itcast_01; /* * 看程序?qū)懡Y(jié)果:結(jié)果和我們想的有一點(diǎn)點(diǎn)不一樣,這是因?yàn)閒loat類型的數(shù)據(jù)存儲(chǔ)和整數(shù)不一樣導(dǎo)致的。它們大部分的時(shí)候,都是帶有有效數(shù)字位。 * * 由于在運(yùn)算的時(shí)候,float類型和double很容易丟失精度,演示案例。所以,為了能精確的表示、計(jì)算浮點(diǎn)數(shù),Java提供了BigDecimal * * BigDecimal類:不可變的、任意精度的有符號(hào)十進(jìn)制數(shù),可以解決數(shù)據(jù)丟失問題。 */ public class BigDecimalDemo { public static void main(String[] args) { System.out.println(0.09 + 0.01); System.out.println(1.0 - 0.32); System.out.println(1.015 * 100); System.out.println(1.301 / 100); System.out.println(1.0 - 0.12); } } ======================================================================== package cn.itcast_02; import java.math.BigDecimal; /* * 構(gòu)造方法: * public BigDecimal(String val) * * public BigDecimal add(BigDecimal augend) * public BigDecimal subtract(BigDecimal subtrahend) * public BigDecimal multiply(BigDecimal multiplicand) * public BigDecimal divide(BigDecimal divisor) * public BigDecimal divide(BigDecimal divisor,int scale,int roundingMode):商,幾位小數(shù),如何舍取 */ public class BigDecimalDemo { public static void main(String[] args) { // System.out.println(0.09 + 0.01); // System.out.println(1.0 - 0.32); // System.out.println(1.015 * 100); // System.out.println(1.301 / 100); BigDecimal bd1 = new BigDecimal("0.09"); BigDecimal bd2 = new BigDecimal("0.01"); System.out.println("add:" + bd1.add(bd2)); System.out.println("-------------------"); BigDecimal bd3 = new BigDecimal("1.0"); BigDecimal bd4 = new BigDecimal("0.32"); System.out.println("subtract:" + bd3.subtract(bd4)); System.out.println("-------------------"); BigDecimal bd5 = new BigDecimal("1.015"); BigDecimal bd6 = new BigDecimal("100"); System.out.println("multiply:" + bd5.multiply(bd6)); System.out.println("-------------------"); BigDecimal bd7 = new BigDecimal("1.301"); BigDecimal bd8 = new BigDecimal("100"); System.out.println("divide:" + bd7.divide(bd8)); System.out.println("divide:" + bd7.divide(bd8, 3, BigDecimal.ROUND_HALF_UP)); System.out.println("divide:" + bd7.divide(bd8, 8, BigDecimal.ROUND_HALF_UP)); } } =========================================== package cn.itcast_02; import java.math.BigDecimal; /* * 構(gòu)造方法: * public BigDecimal(String val) * * public BigDecimal add(BigDecimal augend) * public BigDecimal subtract(BigDecimal subtrahend) * public BigDecimal multiply(BigDecimal multiplicand) * public BigDecimal divide(BigDecimal divisor) * public BigDecimal divide(BigDecimal divisor,int scale,int roundingMode):商,幾位小數(shù),如何舍取 */ public class BigDecimalDemo { public static void main(String[] args) { // System.out.println(0.09 + 0.01); // System.out.println(1.0 - 0.32); // System.out.println(1.015 * 100); // System.out.println(1.301 / 100); BigDecimal bd1 = new BigDecimal("0.09"); BigDecimal bd2 = new BigDecimal("0.01"); System.out.println("add:" + bd1.add(bd2)); System.out.println("-------------------"); BigDecimal bd3 = new BigDecimal("1.0"); BigDecimal bd4 = new BigDecimal("0.32"); System.out.println("subtract:" + bd3.subtract(bd4)); System.out.println("-------------------"); BigDecimal bd5 = new BigDecimal("1.015"); BigDecimal bd6 = new BigDecimal("100"); System.out.println("multiply:" + bd5.multiply(bd6)); System.out.println("-------------------"); BigDecimal bd7 = new BigDecimal("1.301"); BigDecimal bd8 = new BigDecimal("100"); System.out.println("divide:" + bd7.divide(bd8)); System.out.println("divide:" + bd7.divide(bd8, 3, BigDecimal.ROUND_HALF_UP)); System.out.println("divide:" + bd7.divide(bd8, 8, BigDecimal.ROUND_HALF_UP)); } } =================================================== // 這幾個(gè)測(cè)試,是為了簡(jiǎn)單超過int范圍內(nèi),Integer就不能再表示,所以就更談不上計(jì)算了。 // Integer i = new Integer(100); // System.out.println(i); // // System.out.println(Integer.MAX_VALUE); // Integer ii = new Integer("2147483647"); // System.out.println(ii); // // NumberFormatException // Integer iii = new Integer("2147483648"); // System.out.println(iii); // 通過大整數(shù)來創(chuàng)建對(duì)象 BigInteger bi = new BigInteger("2147483648"); System.out.println("bi:" + bi); ========================================================================= package cn.itcast_02; import java.math.BigInteger; /* * public BigInteger add(BigInteger val):加 * public BigInteger subtract(BigInteger val):減 * public BigInteger multiply(BigInteger val):乘 * public BigInteger divide(BigInteger val):除 * public BigInteger[] divideAndRemainder(BigInteger val):返回商和余數(shù)的數(shù)組 */ public class BigIntegerDemo { public static void main(String[] args) { BigInteger bi1 = new BigInteger("100"); BigInteger bi2 = new BigInteger("50"); // public BigInteger add(BigInteger val):加 System.out.println("add:" + bi1.add(bi2)); // public BigInteger subtract(BigInteger val):加 System.out.println("subtract:" + bi1.subtract(bi2)); // public BigInteger multiply(BigInteger val):加 System.out.println("multiply:" + bi1.multiply(bi2)); // public BigInteger divide(BigInteger val):加 System.out.println("divide:" + bi1.divide(bi2)); // public BigInteger[] divideAndRemainder(BigInteger val):返回商和余數(shù)的數(shù)組 BigInteger[] bis = bi1.divideAndRemainder(bi2); System.out.println("商:" + bis[0]); System.out.println("余數(shù):" + bis[1]); } } ================================================== package cn.itcast_01; import java.util.Calendar; /* * Calendar:它為特定瞬間與一組諸如 YEAR、MONTH、DAY_OF_MONTH、HOUR 等 日歷字段之間的轉(zhuǎn)換提供了一些方法,并為操作日歷字段(例如獲得下星期的日期)提供了一些方法。 * * public int get(int field):返回給定日歷字段的值。日歷類中的每個(gè)日歷字段都是靜態(tài)的成員變量,并且是int類型。 */ public class CalendarDemo { public static void main(String[] args) { // 其日歷字段已由當(dāng)前日期和時(shí)間初始化: Calendar rightNow = Calendar.getInstance(); // 子類對(duì)象 // 獲取年 int year = rightNow.get(Calendar.YEAR); // 獲取月 int month = rightNow.get(Calendar.MONTH); // 獲取日 int date = rightNow.get(Calendar.DATE); System.out.println(year + "年" + (month + 1) + "月" + date + "日"); } } /* * abstract class Person { public static Person getPerson() { return new * Student(); } } * * class Student extends Person { * * } */ ==================================================================== package cn.itcast_02; import java.util.Calendar; /* * public void add(int field,int amount):根據(jù)給定的日歷字段和對(duì)應(yīng)的時(shí)間,來對(duì)當(dāng)前的日歷進(jìn)行操作。 * public final void set(int year,int month,int date):設(shè)置當(dāng)前日歷的年月日 */ public class CalendarDemo { public static void main(String[] args) { // 獲取當(dāng)前的日歷時(shí)間 Calendar c = Calendar.getInstance(); // 獲取年 int year = c.get(Calendar.YEAR); // 獲取月 int month = c.get(Calendar.MONTH); // 獲取日 int date = c.get(Calendar.DATE); System.out.println(year + "年" + (month + 1) + "月" + date + "日"); // // 三年前的今天 // c.add(Calendar.YEAR, -3); // // 獲取年 // year = c.get(Calendar.YEAR); // // 獲取月 // month = c.get(Calendar.MONTH); // // 獲取日 // date = c.get(Calendar.DATE); // System.out.println(year + "年" + (month + 1) + "月" + date + "日"); // 5年后的10天前 c.add(Calendar.YEAR, 5); c.add(Calendar.DATE, -10); // 獲取年 year = c.get(Calendar.YEAR); // 獲取月 month = c.get(Calendar.MONTH); // 獲取日 date = c.get(Calendar.DATE); System.out.println(year + "年" + (month + 1) + "月" + date + "日"); System.out.println("--------------"); c.set(2011, 11, 11); // 獲取年 year = c.get(Calendar.YEAR); // 獲取月 month = c.get(Calendar.MONTH); // 獲取日 date = c.get(Calendar.DATE); System.out.println(year + "年" + (month + 1) + "月" + date + "日"); } } ===========================================================================package cn.itcast_03; import java.util.Calendar; import java.util.Scanner; /* * 獲取任意一年的二月有多少天 * * 分析: * A:鍵盤錄入任意的年份 * B:設(shè)置日歷對(duì)象的年月日 * 年就是A輸入的數(shù)據(jù) * 月是2 * 日是1 * C:把時(shí)間往前推一天,就是2月的最后一天 * D:獲取這一天輸出即可 */ public class CalendarTest { public static void main(String[] args) { // 鍵盤錄入任意的年份 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入年份:"); int year = sc.nextInt(); // 設(shè)置日歷對(duì)象的年月日 Calendar c = Calendar.getInstance(); c.set(year, 2, 1); // 其實(shí)是這一年的3月1日 // 把時(shí)間往前推一天,就是2月的最后一天 c.add(Calendar.DATE, -1); // 獲取這一天輸出即可 System.out.println(c.get(Calendar.DATE)); } } ================================================================ package cn.itcast_01; import java.util.Date; /* * Date:表示特定的瞬間,精確到毫秒。 * * 構(gòu)造方法: * Date():根據(jù)當(dāng)前的默認(rèn)毫秒值創(chuàng)建日期對(duì)象 * Date(long date):根據(jù)給定的毫秒值創(chuàng)建日期對(duì)象 */ public class DateDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 Date d = new Date(); System.out.println("d:" + d); // 創(chuàng)建對(duì)象 // long time = System.currentTimeMillis(); long time = 1000 * 60 * 60; // 1小時(shí) Date d2 = new Date(time); System.out.println("d2:" + d2); } } ============================================================== package cn.itcast_02; import java.util.Date; /* * public long getTime():獲取時(shí)間,以毫秒為單位 * public void setTime(long time):設(shè)置時(shí)間 * * 從Date得到一個(gè)毫秒值 * getTime() * 把一個(gè)毫秒值轉(zhuǎn)換為Date * 構(gòu)造方法 * setTime(long time) */ public class DateDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 Date d = new Date(); // 獲取時(shí)間 long time = d.getTime(); System.out.println(time); // System.out.println(System.currentTimeMillis()); System.out.println("d:" + d); // 設(shè)置時(shí)間 d.setTime(1000); System.out.println("d:" + d); } } ======================================================= package cn.itcast_03; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /* * Date -- String(格式化) * public final String format(Date date) * * String -- Date(解析) * public Date parse(String source) * * DateForamt:可以進(jìn)行日期和字符串的格式化和解析,但是由于是抽象類,所以使用具體子類SimpleDateFormat。 * * SimpleDateFormat的構(gòu)造方法: * SimpleDateFormat():默認(rèn)模式 * SimpleDateFormat(String pattern):給定的模式 * 這個(gè)模式字符串該如何寫呢? * 通過查看API,我們就找到了對(duì)應(yīng)的模式 * 年 y * 月 M * 日 d * 時(shí) H * 分 m * 秒 s * * 2014年12月12日 12:12:12 */ public class DateFormatDemo { public static void main(String[] args) throws ParseException { // Date -- String // 創(chuàng)建日期對(duì)象 Date d = new Date(); // 創(chuàng)建格式化對(duì)象 // SimpleDeFormat sdf = new SimpleDateFormat(); // 給定模式 SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss"); // public final String format(Date date) String s = sdf.format(d); System.out.println(s); //String -- Date String str = "2008-08-08 12:12:12"; //在把一個(gè)字符串解析為日期的時(shí)候,請(qǐng)注意格式必須和給定的字符串格式匹配 SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date dd = sdf2.parse(str); System.out.println(dd); } } ===========================================================================package cn.itcast_04; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * 這是日期和字符串相互轉(zhuǎn)換的工具類 * * @author 風(fēng)清揚(yáng) */ public class DateUtil { private DateUtil() { } /** * 這個(gè)方法的作用就是把日期轉(zhuǎn)成一個(gè)字符串 * * @param d * 被轉(zhuǎn)換的日期對(duì)象 * @param format * 傳遞過來的要被轉(zhuǎn)換的格式 * @return 格式化后的字符串 */ public static String dateToString(Date d, String format) { // SimpleDateFormat sdf = new SimpleDateFormat(format); // return sdf.format(d); return new SimpleDateFormat(format).format(d); } /** * 這個(gè)方法的作用就是把一個(gè)字符串解析成一個(gè)日期對(duì)象 * * @param s * 被解析的字符串 * @param format * 傳遞過來的要被轉(zhuǎn)換的格式 * @return 解析后的日期對(duì)象 * @throws ParseException */ public static Date stringToDate(String s, String format) throws ParseException { return new SimpleDateFormat(format).parse(s); } } ============================================================ package cn.itcast_04; import java.text.ParseException; import java.util.Date; /* * 工具類的測(cè)試 */ public class DateUtilDemo { public static void main(String[] args) throws ParseException { Date d = new Date(); // yyyy-MM-dd HH:mm:ss String s = DateUtil.dateToString(d, "yyyy年MM月dd日 HH:mm:ss"); System.out.println(s); String s2 = DateUtil.dateToString(d, "yyyy年MM月dd日"); System.out.println(s2); String s3 = DateUtil.dateToString(d, "HH:mm:ss"); System.out.println(s3); String str = "2014-10-14"; Date dd = DateUtil.stringToDate(str, "yyyy-MM-dd"); System.out.println(dd); } } =============================================================== package cn.itcast_05; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; /* * 算一下你來到這個(gè)世界多少天? * * 分析: * A:鍵盤錄入你的出生的年月日 * B:把該字符串轉(zhuǎn)換為一個(gè)日期 * C:通過該日期得到一個(gè)毫秒值 * D:獲取當(dāng)前時(shí)間的毫秒值 * E:用D-C得到一個(gè)毫秒值 * F:把E的毫秒值轉(zhuǎn)換為年 * /1000/60/60/24 */ public class MyYearOldDemo { public static void main(String[] args) throws ParseException { // 鍵盤錄入你的出生的年月日 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入你的出生年月日:"); String line = sc.nextLine(); // 把該字符串轉(zhuǎn)換為一個(gè)日期 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date d = sdf.parse(line); // 通過該日期得到一個(gè)毫秒值 long myTime = d.getTime(); // 獲取當(dāng)前時(shí)間的毫秒值 long nowTime = System.currentTimeMillis(); // 用D-C得到一個(gè)毫秒值 long time = nowTime - myTime; // 把E的毫秒值轉(zhuǎn)換為年 long day = time / 1000 / 60 / 60 / 24; System.out.println("你來到這個(gè)世界:" + day + "天"); } } =========================================================================== package cn.itcast_01; /* * Math:用于數(shù)學(xué)運(yùn)算的類。 * 成員變量: * public static final double PI * public static final double E * 成員方法: * public static int abs(int a):絕對(duì)值 * public static double ceil(double a):向上取整 * public static double floor(double a):向下取整 * public static int max(int a,int b):最大值 (min自學(xué)) * public static double pow(double a,double b):a的b次冪 * public static double random():隨機(jī)數(shù) [0.0,1.0) * public static int round(float a) 四舍五入(參數(shù)為double的自學(xué)) * public static double sqrt(double a):正平方根 */ public class MathDemo { public static void main(String[] args) { // public static final double PI System.out.println("PI:" + Math.PI); // public static final double E System.out.println("E:" + Math.E); System.out.println("--------------"); // public static int abs(int a):絕對(duì)值 System.out.println("abs:" + Math.abs(10)); System.out.println("abs:" + Math.abs(-10)); System.out.println("--------------"); // public static double ceil(double a):向上取整 System.out.println("ceil:" + Math.ceil(12.34)); System.out.println("ceil:" + Math.ceil(12.56)); System.out.println("--------------"); // public static double floor(double a):向下取整 System.out.println("floor:" + Math.floor(12.34)); System.out.println("floor:" + Math.floor(12.56)); System.out.println("--------------"); // public static int max(int a,int b):最大值 System.out.println("max:" + Math.max(12, 23)); // 需求:我要獲取三個(gè)數(shù)據(jù)中的最大值 // 方法的嵌套調(diào)用 System.out.println("max:" + Math.max(Math.max(12, 23), 18)); // 需求:我要獲取四個(gè)數(shù)據(jù)中的最大值 System.out.println("max:" + Math.max(Math.max(12, 78), Math.max(34, 56))); System.out.println("--------------"); // public static double pow(double a,double b):a的b次冪 System.out.println("pow:" + Math.pow(2, 3)); System.out.println("--------------"); // public static double random():隨機(jī)數(shù) [0.0,1.0) System.out.println("random:" + Math.random()); // 獲取一個(gè)1-100之間的隨機(jī)數(shù) System.out.println("random:" + ((int) (Math.random() * 100) + 1)); System.out.println("--------------"); // public static int round(float a) 四舍五入(參數(shù)為double的自學(xué)) System.out.println("round:" + Math.round(12.34f)); System.out.println("round:" + Math.round(12.56f)); System.out.println("--------------"); //public static double sqrt(double a):正平方根 System.out.println("sqrt:"+Math.sqrt(4)); } } =========================================================================== package cn.itcast_02; import java.util.Scanner; /* * 需求:請(qǐng)?jiān)O(shè)計(jì)一個(gè)方法,可以實(shí)現(xiàn)獲取任意范圍內(nèi)的隨機(jī)數(shù)。 * * 分析: * A:鍵盤錄入兩個(gè)數(shù)據(jù)。 * int strat; * int end; * B:想辦法獲取在start到end之間的隨機(jī)數(shù) * 我寫一個(gè)功能實(shí)現(xiàn)這個(gè)效果,得到一個(gè)隨機(jī)數(shù)。(int) * C:輸出這個(gè)隨機(jī)數(shù) */ public class MathDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入開始數(shù):"); int start = sc.nextInt(); System.out.println("請(qǐng)輸入結(jié)束數(shù):"); int end = sc.nextInt(); for (int x = 0; x < 100; x++) { // 調(diào)用功能 int num = getRandom(start, end); // 輸出結(jié)果 System.out.println(num); } } /* * 寫一個(gè)功能 兩個(gè)明確: 返回值類型:int 參數(shù)列表:int start,int end */ public static int getRandom(int start, int end) { // 回想我們講過的1-100之間的隨機(jī)數(shù) // int number = (int) (Math.random() * 100) + 1; // int number = (int) (Math.random() * end) + start; // 發(fā)現(xiàn)有問題了,怎么辦呢? return number; } } ====================================================== package cn.itcast_01; import java.util.Random; /* * Random:產(chǎn)生隨機(jī)數(shù)的類 * * 構(gòu)造方法: * public Random():沒有給種子,用的是默認(rèn)種子,是當(dāng)前時(shí)間的毫秒值 * public Random(long seed):給出指定的種子 * * 給定種子后,每次得到的隨機(jī)數(shù)是相同的。 * * 成員方法: * public int nextInt():返回的是int范圍內(nèi)的隨機(jī)數(shù) * public int nextInt(int n):返回的是[0,n)范圍的內(nèi)隨機(jī)數(shù) */ public class RandomDemo { public static void main(String[] args) { // 創(chuàng)建對(duì)象 // Random r = new Random(); Random r = new Random(1111); for (int x = 0; x < 10; x++) { // int num = r.nextInt(); int num = r.nextInt(100) + 1; System.out.println(num); } } } ===========================================================================package cn.itcast_01; import java.util.Scanner; /* * 校驗(yàn)qq號(hào)碼. * 1:要求必須是5-15位數(shù)字 * 2:0不能開頭 * * 分析: * A:鍵盤錄入一個(gè)QQ號(hào)碼 * B:寫一個(gè)功能實(shí)現(xiàn)校驗(yàn) * C:調(diào)用功能,輸出結(jié)果。 */ public class RegexDemo { public static void main(String[] args) { // 創(chuàng)建鍵盤錄入對(duì)象 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入你的QQ號(hào)碼:"); String qq = sc.nextLine(); System.out.println("checkQQ:"+checkQQ(qq)); } /* * 寫一個(gè)功能實(shí)現(xiàn)校驗(yàn) 兩個(gè)明確: 明確返回值類型:boolean 明確參數(shù)列表:String qq */ public static boolean checkQQ(String qq) { boolean flag = true; // 校驗(yàn)長(zhǎng)度 if (qq.length() >= 5 && qq.length() <= 15) { // 0不能開頭 if (!qq.startsWith("0")) { // 必須是數(shù)字 char[] chs = qq.toCharArray(); for (int x = 0; x < chs.length; x++) { char ch = chs[x]; if (!Character.isDigit(ch)) { flag = false; break; } } } else { flag = false; } } else { flag = false; } return flag; } } ===========================================================================package cn.itcast_01; import java.util.Scanner; /* * 正則表達(dá)式:符合一定規(guī)則的字符串。 */ public class RegexDemo2 { public static void main(String[] args) { // 創(chuàng)建鍵盤錄入對(duì)象 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入你的QQ號(hào)碼:"); String qq = sc.nextLine(); System.out.println("checkQQ:" + checkQQ(qq)); } public static boolean checkQQ(String qq) { // String regex ="[1-9][0-9]{4,14}"; // //public boolean matches(String regex)告知此字符串是否匹配給定的正則表達(dá)式 // boolean flag = qq.matches(regex); // return flag; //return qq.matches("[1-9][0-9]{4,14}"); return qq.matches("[1-9]\\d{4,14}"); } } ========================================================== package cn.itcast_02; import java.util.Scanner; /* * 判斷功能 * String類的public boolean matches(String regex) * * 需求: * 判斷手機(jī)號(hào)碼是否滿足要求? * * 分析: * A:鍵盤錄入手機(jī)號(hào)碼 * B:定義手機(jī)號(hào)碼的規(guī)則 * 13436975980 * 13688886868 * 13866668888 * 13456789012 * 13123456789 * 18912345678 * 18886867878 * 18638833883 * C:調(diào)用功能,判斷即可 * D:輸出結(jié)果 */ public class RegexDemo { public static void main(String[] args) { //鍵盤錄入手機(jī)號(hào)碼 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入你的手機(jī)號(hào)碼:"); String phone = sc.nextLine(); //定義手機(jī)號(hào)碼的規(guī)則 String regex = "1[38]\\d{9}"; //調(diào)用功能,判斷即可 boolean flag = phone.matches(regex); //輸出結(jié)果 System.out.println("flag:"+flag); } } ==================================================== package cn.itcast_02; import java.util.Scanner; /* * 校驗(yàn)郵箱 * * 分析: * A:鍵盤錄入郵箱 * B:定義郵箱的規(guī)則 * 1517806580@qq.com * liuyi@163.com * linqingxia@126.com * fengqingyang@sina.com.cn * fqy@itcast.cn * C:調(diào)用功能,判斷即可 * D:輸出結(jié)果 */ public class RegexTest { public static void main(String[] args) { //鍵盤錄入郵箱 Scanner sc = new Scanner(System.in); System.out.println("請(qǐng)輸入郵箱:"); String email = sc.nextLine(); //定義郵箱的規(guī)則 //String regex = "[a-zA-Z_0-9]+@[a-zA-Z_0-9]{2,6}(\\.[a-zA-Z_0-9]{2,3})+"; String regex = "\\w+@\\w{2,6}(\\.\\w{2,3})+"; //調(diào)用功能,判斷即可 boolean flag = email.matches(regex); //輸出結(jié)果 System.out.println("flag:"+flag); } } ======================================================== A:字符 x 字符 x。舉例:'a'表示字符a \\ 反斜線字符。 \n 新行(換行)符 ('\u000A') \r 回車符 ('\u000D') B:字符類 [abc] a、b 或 c(簡(jiǎn)單類) [^abc] 任何字符,除了 a、b 或 c(否定) [a-zA-Z] a到 z 或 A到 Z,兩頭的字母包括在內(nèi)(范圍) [0-9] 0到9的字符都包括 如:[1-9][0-9]{4,14}表示:第一個(gè)數(shù)[1-9]表示1到9,第二個(gè)數(shù)[0-9]表示0到9 {4,14}表示[0-9]有4位到14位 C:預(yù)定義字符類 . 任何字符。我的就是.字符本身,怎么表示呢? \. \d 數(shù)字:[0-9] \w 單詞字符: [a-zA-Z_0-9] 在正則表達(dá)式里面組成單詞的東西必須有這些東西組成 D:邊界匹配器 ^ 行的開頭 $ 行的結(jié)尾 \b 單詞邊界 就是不是單詞字符的地方。 舉例:hello world?haha;xixi E:Greedy 數(shù)量詞 X? X,一次或一次也沒有 X* X,零次或多次 X+ X,一次或多次 X{n} X,恰好 n 次 X{n,} X,至少 n 次 X{n,m} X,至少 n 次,但是不超過 m 次 ========================================================================== package cn.itcast_01; public class Person { private String name; private int age; public Person() { super(); } public Person(String name, int age) { super(); this.name = name; this.age = age; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public String toString() { return "Person [name=" + name + ", age=" + age + "]"; } @Override protected void finalize() throws Throwable { System.out.println("當(dāng)前的對(duì)象被回收了" + this); super.finalize(); } } === package cn.itcast_01; /* * System類包含一些有用的類字段和方法。它不能被實(shí)例化。 * * 方法: * public static void gc():運(yùn)行垃圾回收器。 * public static void exit(int status) * public static long currentTimeMillis() * public static void arraycopy(Object src,int srcPos,Object dest,int destPos,int length) */ public class SystemDemo { public static void main(String[] args) { checkQQ } } =========================================================================== package cn.itcast_02; /* * System類包含一些有用的類字段和方法。它不能被實(shí)例化。 * * 方法: * public static void gc():運(yùn)行垃圾回收器。 * public static void exit(int status):終止當(dāng)前正在運(yùn)行的 Java 虛擬機(jī)。參數(shù)用作狀態(tài)碼;根據(jù)慣例,非 0 的狀態(tài)碼表示異常終止。 * public static long currentTimeMillis():返回以毫秒為單位的當(dāng)前時(shí)間 * public static void arraycopy(Object src,int srcPos,Object dest,int destPos,int length) */ public class SystemDemo { public static void main(String[] args) { // System.out.println("我們喜歡林青霞(東方不敗)"); // System.exit(0); // System.out.println("我們也喜歡趙雅芝(白娘子)"); // System.out.println(System.currentTimeMillis()); // 單獨(dú)得到這樣的實(shí)際目前對(duì)我們來說意義不大 // 那么,它到底有什么作用呢? // 要求:請(qǐng)大家給我統(tǒng)計(jì)這段程序的運(yùn)行時(shí)間 long start = System.currentTimeMillis(); for (int x = 0; x < 100000; x++) { System.out.println("hello" + x); } long end = System.currentTimeMillis(); System.out.println("共耗時(shí):" + (end - start) + "毫秒"); } } ============================================================= package cn.itcast_03; import java.util.Arrays; /* * System類包含一些有用的類字段和方法。它不能被實(shí)例化。 * * 方法: * public static void gc():運(yùn)行垃圾回收器。 * public static void exit(int status):終止當(dāng)前正在運(yùn)行的 Java 虛擬機(jī)。參數(shù)用作狀態(tài)碼;根據(jù)慣例,非 0 的狀態(tài)碼表示異常終止。 * public static long currentTimeMillis():返回以毫秒為單位的當(dāng)前時(shí)間 * public static void arraycopy(Object src,int srcPos,Object dest,int destPos,int length) * 從指定源數(shù)組中復(fù)制一個(gè)數(shù)組,復(fù)制從指定的位置開始,到目標(biāo)數(shù)組的指定位置結(jié)束。 */ public class SystemDemo { public static void main(String[] args) { // 定義數(shù)組 int[] arr = { 11, 22, 33, 44, 55 }; int[] arr2 = { 6, 7, 8, 9, 10 }; // 請(qǐng)大家看這個(gè)代碼的意思 System.arraycopy(arr, 1, arr2, 2, 2); System.out.println(Arrays.toString(arr)); System.out.println(Arrays.toString(arr2)); } }

轉(zhuǎn)載于:https://www.cnblogs.com/yejibigdata/p/7835112.html

總結(jié)

以上是生活随笔為你收集整理的Java_String_Arrays_Character_BigDecimal_Calendar_Math_System的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

91av在线播放视频 | 日本黄色免费在线观看 | av中文天堂在线 | 免费看片网址 | 91女人18片女毛片60分钟 | 国产一区二区在线播放 | 国产二区视频在线 | 黄色网址国产 | avav99| 欧美日韩性 | 97在线视频网站 | av一区在线 | 9999国产精品 | 国产亚洲视频中文字幕视频 | 欧美一区二区三区四区夜夜大片 | 免费男女羞羞的视频网站中文字幕 | 91超碰免费在线 | 人人玩人人添人人澡97 | 午夜久久久久久久久 | 精品国产伦一区二区三区观看说明 | 国产福利精品在线观看 | 在线只有精品 | 日本在线观看视频一区 | 久久精品爱爱视频 | 狠狠色丁香久久婷婷综合_中 | 色婷婷www| 亚洲精品ww | 精品国产成人在线 | 成人黄色小视频 | 夜夜嗨av色一区二区不卡 | 亚洲精选国产 | 字幕网av| 久久久久久久久久国产精品 | 天天色婷婷 | 视频一区二区免费 | 9999精品免费视频 | av在线播放亚洲 | 国产成人三级在线播放 | 国产精品一区二区中文字幕 | 成年人视频在线免费 | 亚洲一区二区三区四区在线视频 | 成人啪啪18免费游戏链接 | 国产系列 在线观看 | 久久久久久毛片 | 天天天天天天天天操 | 69视频在线| 日本韩国在线不卡 | 日韩区在线观看 | 国产不卡免费av | 天天爽人人爽夜夜爽 | 综合天天 | 97国产 | 久久97久久| 一区中文字幕在线观看 | 久久99久久99精品免观看粉嫩 | 精品久久久久久久久久久久久久久久 | 久久精品一区二区三区中文字幕 | 97av影院| 天天色婷婷 | 国产福利网站 | 免费a视频在线 | 日韩中文字幕91 | 国产高清视频在线免费观看 | 97超碰中文字幕 | 精品日韩视频 | 二区精品视频 | 欧美久久久久久久久久久久久 | 国产一区二区在线免费播放 | 国产专区日韩专区 | 国产黄色免费观看 | 高清国产午夜精品久久久久久 | 色中文字幕在线观看 | 色综合婷婷久久 | 日韩在线视频二区 | 欧美一级日韩三级 | 国产麻豆电影 | 在线国产专区 | 日韩av不卡播放 | 国产美女无遮挡永久免费 | 天天干天天干天天操 | 成人三级网站在线观看 | 日韩视频欧美视频 | 麻豆国产精品va在线观看不卡 | 成人h电影在线观看 | 亚洲精品一区二区三区四区高清 | 国产精品999久久久 久产久精国产品 | 久久激情久久 | 中文字幕在线播放日韩 | 欧美人牲 | 成人a大片| 蜜臀av在线一区二区三区 | 日韩在线观看你懂得 | 久久露脸国产精品 | 中文字幕精品www乱入免费视频 | 一区二区视| 美女在线国产 | 999成人 | 国产在线p | 涩涩伊人| 丝袜一区在线 | 久久免费视频2 | 久久这里 | 99视频导航| 日韩av高清 | 在线色亚洲 | 国产免费视频一区二区裸体 | 久久黄色网页 | 久99视频| 在线观看免费av片 | 波多野结衣综合网 | 久久久久黄| 国产精品久久久久久久久久东京 | 波多野结衣电影一区二区三区 | 最近中文字幕完整高清 | 欧美吞精| 成人在线播放免费观看 | 久久国产成人午夜av影院潦草 | 97在线观看视频免费 | av久久在线 | 国产一区在线精品 | 一本一本久久a久久 | a黄色影院 | 国产精品欧美久久久久无广告 | 久99视频 | 婷婷六月综合亚洲 | 日韩大片在线免费观看 | 91插插影库 | 九九九九精品 | 免费中文字幕在线观看 | 美女视频黄网站 | 国产精品免费麻豆入口 | 亚在线播放中文视频 | 国产精品永久免费观看 | av电影中文 | 在线播放亚洲 | 噜噜色官网 | 五月天久久婷 | 麻豆一精品传二传媒短视频 | 永久免费观看视频 | 2021国产在线视频 | 黄色毛片一级 | 国产91精品一区二区麻豆网站 | 久艹视频在线免费观看 | 国产精品久久久久一区二区 | 亚洲精品高清在线观看 | 日韩毛片在线免费观看 | 天天射日 | 91av大全| 日韩精品一区二区三区免费观看 | 成人欧美一区二区三区在线观看 | 国产欧美综合视频 | 久久久久9999亚洲精品 | 欧美日韩国产页 | 成人av视屏| 992tv在线| 国产亚洲精品精品精品 | 黄色日视频 | 国产在线欧美 | 国产精品久久在线观看 | 色香蕉在线 | 国产aaa大片| 亚洲综合丁香 | 五月婷婷在线观看视频 | 99精品久久久 | 欧美精品xxx | 欧美极度另类性三渗透 | 99热超碰| 91社区国产高清 | 久久精品视频在线播放 | 久久精品一区二区三区四区 | 国产香蕉久久精品综合网 | 中文字幕大全 | 丁香六月在线 | 成年人app网址 | 久久精品视频在线免费观看 | 国产精品毛片一区二区在线 | 国产涩涩在线观看 | 国产99久久久国产精品免费看 | 久久国产a | 在线国产一区 | 亚洲免费在线观看视频 | 国产成人高清在线 | 久久久久综合网 | 奇米影视777影音先锋 | 91系列在线| 在线性视频日韩欧美 | 天天色天天操天天爽 | 欧美日韩在线观看不卡 | .国产精品成人自产拍在线观看6 | 亚洲成a人片77777kkkk1在线观看 | 久久激情综合 | 欧美人体xx | 丁香六月天 | 天天操天操 | 美女视频黄免费网站 | 国产在线 一区二区三区 | 最近av在线 | 国产精品久久久久久五月尺 | 日韩欧美视频在线观看免费 | www成人av| 国产精品久久一区二区无卡 | 成人在线免费av | 麻豆首页| 美女av电影 | 字幕网资源站中文字幕 | 国产精品高潮呻吟久久久久 | 美女av电影 | 国产成人专区 | 欧美在线观看视频免费 | 亚洲国产精品小视频 | 欧美日韩国产精品久久 | 天天在线视频色 | 狠狠操在线 | 毛片随便看| 在线日韩av| 久久五月网 | www.av中文字幕.com | 日韩视频一区二区在线观看 | 99国产精品免费网站 | 中文字幕一区2区3区 | 伊人亚洲综合网 | 国产视频在线免费观看 | 韩国av免费观看 | 欧美国产精品一区二区 | 欧美性生活一级片 | 日本精品va在线观看 | 亚洲最新精品 | 探花视频免费观看 | 久久草av | 在线 你懂 | 九热精品 | 99久久精品免费看国产免费软件 | 欧美巨乳网 | 日韩在线观看高清 | 日韩色视频在线观看 | 日韩免费播放 | 成人av一区二区三区 | 国产一级大片在线观看 | 亚洲精品视频在线观看免费 | 欧美一级在线观看视频 | 91精品亚洲影视在线观看 | www.色午夜,com | 97视频免费在线观看 | 成人中文字幕+乱码+中文字幕 | 91激情视频在线 | 国产精品久久电影观看 | 一区二区三区手机在线观看 | 国产在线国偷精品产拍 | 91视频观看免费 | 中文字幕在线观看完整版 | 中国一级片在线观看 | 欧美成人高清 | 中文字幕在线成人 | 久久免费国产视频 | 国产99一区视频免费 | 久久综合九色综合久99 | 久久视频99 | 夜色资源网| 国产精品久免费的黄网站 | 日韩欧美xxxx| 亚洲电影av在线 | 久久影视中文字幕 | 欧美一级片免费 | 午夜成人免费电影 | 亚洲视频在线观看 | 成人免费在线播放视频 | 中文字幕欧美日韩va免费视频 | 日本精品视频在线播放 | 国产精品视频资源 | 黄色特级毛片 | 成年人黄色大片在线 | 在线观看免费视频 | 成人av电影在线播放 | 欧美人交a欧美精品 | 国产高清在线看 | 婷婷.com| 最新91在线视频 | 中国一区二区视频 | 97在线观看免费观看高清 | 成人h视频 | 婷婷看片| 婷五月激情 | adc在线观看 | 97在线视频观看 | 日韩精品一区二区三区免费视频观看 | 人人超碰免费 | 中文字幕在线观看免费高清完整版 | 亚洲最大激情中文字幕 | 国产成人在线观看免费 | 国产大片免费久久 | 超碰人在线 | 激情视频久久 | 久久免费视频播放 | 中文字幕色婷婷在线视频 | 免费看一级片 | 色五月色开心色婷婷色丁香 | 日韩欧美视频免费在线观看 | 色插综合 | 青青河边草观看完整版高清 | 国产在线精品国自产拍影院 | 中文字幕在线观看网 | 色在线免费视频 | 激情综合五月天 | 人人草在线视频 | 国内精品久久久久影院男同志 | 国产伦理久久精品久久久久_ | 欧美成人精品欧美一级乱 | 久草男人天堂 | 日本中文字幕系列 | 五月婷婷综合激情 | 国产一区二区精品在线 | 婷婷激情综合网 | 特级黄色视频毛片 | 91黄色在线视频 | 日韩乱码在线 | 亚洲永久精品在线观看 | 久久欧美综合 | 日本久久成人中文字幕电影 | 亚洲精品资源 | 久操视频在线观看 | 亚洲1区在线 | 狠狠干干 | 欧美日韩不卡在线观看 | 国产成人在线一区 | 碰超在线| 日日激情| 日韩最新在线 | www.五月婷婷 | 亚洲成a人片在线观看中文 中文字幕在线视频第一页 狠狠色丁香婷婷综合 | 亚洲国产高清视频 | 最新日本中文字幕 | 韩日色视频 | 国产精品美女毛片真酒店 | 日韩欧美在线第一页 | 国产毛片aaa | 九色91视频| 亚洲精品美女免费 | 久久久电影网站 | 免费a级毛片在线看 | av三级av| 中文字幕免费久久 | 日韩av免费在线看 | 黄色精品久久 | 激情网在线视频 | 99热这里只有精品国产首页 | 亚洲丁香久久久 | 日日日网| 国产一级在线观看视频 | 国产高清福利在线 | 91中文在线视频 | 成人免费观看大片 | av大片免费看 | 日韩在线视频一区二区三区 | 国产又粗又猛又色又黄视频 | 欧美aa一级片 | 在线视频欧美精品 | 久久免费a | 色成人亚洲 | 欧美久久九九 | 色偷偷网站视频 | 日韩精品2区| 婷婷激情五月 | 超碰公开97 | 玖玖爱免费视频 | 国产五月 | 欧洲一区二区三区精品 | 成人精品亚洲 | 国产日韩在线观看一区 | 欧美成年网站 | 在线视频成人 | 国产日韩视频在线播放 | 中文字幕第一页av | 国产精品久久久久久久久久久久午夜片 | 99精品在线观看 | 日韩一级片大全 | 国产黄色一级大片 | 日本中文字幕视频 | 国产又粗又硬又长又爽的视频 | 六月丁香激情综合色啪小说 | 国产黄免费在线观看 | 在线a亚洲视频播放在线观看 | 午夜狠狠干 | av中文字幕在线播放 | 91免费网址| 亚洲精品国产精品乱码在线观看 | 免费美女久久99 | 免费看的国产视频网站 | 久久精品亚洲精品国产欧美 | 91成年人网站 | 五月花婷婷 | 成人免费在线电影 | 在线观看日本高清mv视频 | 在线日韩亚洲 | 国产精品毛片一区视频 | 在线不卡的av | 国产最顶级的黄色片在线免费观看 | 欧美精品国产综合久久 | 国产福利免费在线观看 | 欧美色综合天天久久综合精品 | 免费黄色看片 | 2022中文字幕在线观看 | 一区二区三区韩国免费中文网站 | 久久精品二区 | 天天透天天插 | 在线激情电影 | 亚洲欧洲精品一区二区 | 久久九九影视网 | 97超碰伊人 | 久草视频中文在线 | 国产免费又粗又猛又爽 | 日日夜夜免费精品视频 | 麻豆视频在线播放 | 6080yy午夜一二三区久久 | 伊人资源视频在线 | 欧美日韩破处 | 欧美一级日韩免费不卡 | 久久99欧美 | 久草精品视频在线播放 | 91av在线不卡| 国产精品9999久久久久仙踪林 | 国产中文字幕一区二区 | 久久精品免费看 | 激情五月五月婷婷 | av福利在线播放 | 一区二区久久久久 | av短片在线 | 国产精品成人a免费观看 | 国产精品美女久久久久久久久 | 成年人免费电影在线观看 | 成人在线视频免费看 | 日韩久久精品 | 久色小说| 成人午夜网址 | 天天艹天天| 日韩三级视频在线看 | 天天看天天操 | 欧美一区免费在线观看 | 国产精品视频专区 | 国产精品一区二区三区在线看 | 久久精品视 | 91大神电影 | 欧美在线一级片 | 国产黄色片一级三级 | 国产精品黄网站在线观看 | 免费观看视频的网站 | 日韩一级理论片 | 91视频在线播放视频 | 久久人人做| 国产精品欧美一区二区 | 亚洲欧美日韩精品一区二区 | 99精品久久久久久久 | 天堂v中文 | 一区av在线播放 | 91亚洲精品久久久 | 国产视频精品免费播放 | 国产精品久久久久久久久久ktv | 在线观看视频亚洲 | 精品国产一区二区三区四区在线观看 | 99精品视频免费全部在线 | 日韩成人在线一区二区 | 超碰免费久久 | 最近最新中文字幕 | 久久久国产99久久国产一 | 天天综合网入口 | 97精品国产97久久久久久春色 | 亚洲视频 视频在线 | 欧美日韩一区二区在线观看 | 在线日本看片免费人成视久网 | 日韩在线视频免费播放 | 美女网站色 | 欧美性极品xxxx做受 | 国产精品久久久久久久久久久久久 | 在线看黄色的网站 | 五月天综合色激情 | av在线a | 中文字幕永久免费 | 欧美一级片免费在线观看 | 精品视频免费看 | www一起操 | 久久午夜色播影院免费高清 | 综合色婷婷 | 久久国产精品二国产精品中国洋人 | 色插综合 | 91看片淫黄大片一级在线观看 | 91在线区 | 91观看视频 | 免费黄a大片 | 西西4444www大胆艺术 | 日韩精品欧美视频 | 狠狠干夜夜爽 | 国产亚洲精品无 | 国产美女搞久久 | 国产精品自在欧美一区 | 午夜体验区 | 久草视频播放 | www国产精品com | 97成人免费视频 | 在线一区av| 欧美成人影音 | 美女国产精品 | 在线亚洲免费视频 | 欧美另类高潮 | 黄色com | 91爱爱视频 | 天天射综合网站 | 成人高清在线 | 国产精品久久久久久久免费大片 | 色狠狠综合天天综合综合 | 亚洲精品中文字幕视频 | 手机av看片 | 精品国产黄色片 | 97电影手机 | 久久情网| 日韩大片在线看 | 精品国产一区二区三区久久久蜜月 | 免费国产一区二区视频 | 99精品国产高清在线观看 | 国产中文视 | 在线观看国产 | 亚洲男男gaygay无套同网址 | 韩国av不卡 | 美女免费网站 | 99久久精品免费看国产免费软件 | 欧美成人久久 | 91视频免费观看 | 91成年人在线观看 | 欧美在线视频一区二区三区 | 久久这里精品视频 | 久久 亚洲视频 | 国产一级一片免费播放放a 一区二区三区国产欧美 | 一级α片免费看 | 在线看片一区 | 香蕉视频91 | 深爱激情综合 | 久久99九九99精品 | 久久超碰免费 | 9在线观看免费高清完整版在线观看明 | 亚洲精品男女 | 99精品欧美一区二区 | 中文不卡视频 | 91精品夜夜 | 九色porny真实丨国产18 | 日韩在线免费播放 | av高清影院 | 日韩在线免费视频 | 免费高清在线观看成人 | 国产精品麻 | 操操操影院| 91精品在线免费视频 | 成人在线免费视频观看 | 麻豆果冻剧传媒在线播放 | 久久午夜电影网 | 西西人体www444 | 欧美在线观看禁18 | 精品福利视频在线观看 | 日韩精品2区 | 国产精品乱码久久久久久1区2区 | 九九综合九九综合 | 午夜精品久久久久99热app | 国产高h视频 | 天天操天天干天天 | 偷拍视频一区 | av亚洲产国偷v产偷v自拍小说 | 色橹橹欧美在线观看视频高清 | 欧美色伊人 | 国产剧情在线一区 | 国产午夜精品免费一区二区三区视频 | 亚洲国产精品久久久久 | 久久免费视频在线观看 | av观看在线观看 | 国产爽妇网 | 91视频一8mav | 精品成人在线 | 丝袜网站在线观看 | 成人理论电影 | 91九色视频观看 | www·22com天天操 | 日韩电影黄色 | 成年人在线免费看视频 | 色老板在线 | 日日干影院 | 97av在线| 日韩.com | 日韩天天干 | 国产精品99久久久久久人免费 | 久久看片网站 | 亚洲黄色一级大片 | 欧亚日韩精品一区二区在线 | 国产精品视频99 | 免费一级黄色 | a视频免费 | 国产网红在线观看 | 天天干天天插伊人网 | 欧美日韩视频在线一区 | 亚州精品一二三区 | 超碰在线94| 日本公乱妇视频 | 九九免费观看全部免费视频 | 在线 日韩 av | 91爱爱网址 | 在线中文字幕一区二区 | 狠狠色狠狠色综合日日92 | 精品成人a区在线观看 | 三级av中文字幕 | 成年人视频在线免费 | 麻豆久久久久 | 久久伊人操 | 在线观看91| 五月天亚洲激情 | 五月婷亚洲 | 一区二区视 | 免费观看一级一片 | 亚洲色图激情文学 | 最新中文字幕在线播放 | 国产小视频网站 | 不卡的av片 | 伊香蕉大综综综合久久啪 | 日韩免费看片 | 黄色美女免费网站 | 美腿丝袜av | 在线小视频 | av中文字幕网址 | 久久资源在线 | www.福利| 不卡中文字幕av | 成人久久亚洲 | 国产精品免费成人 | 国产精品99久久99久久久二8 | 一区二区观看 | 在线观看中文字幕2021 | 在线免费视频a | 亚洲天堂香蕉 | 精品久久在线 | 久久久精品福利视频 | 一级精品视频在线观看宜春院 | 视频在线观看91 | 亚洲精品美女久久17c | 91在线观看视频网站 | 最新日韩在线 | 四虎在线免费观看 | 天堂黄色片 | 日韩精品一区二区在线观看 | 日韩免费一区二区三区 | 黄色亚洲精品 | 精品国产一区二区三区在线观看 | 在线性视频日韩欧美 | 亚洲国产日韩欧美 | 91av视频 | 91看成人| 九九在线精品视频 | 国产精品一区二区免费在线观看 | 婷婷综合在线 | 亚洲精品高清视频 | 日韩亚洲在线视频 | 国产成人在线免费观看 | 久久久久久久久国产 | 久久久久久久久亚洲精品 | 婷婷六月丁 | 亚洲日本激情 | 亚洲国产免费网站 | 欧美视频国产视频 | 亚洲精品电影在线 | 天天色天天射天天操 | 天天搞天天 | 草草草影院| 日韩欧美视频一区二区 | 国产精品久久久一区二区 | 亚洲成色 | 免费视频97| 国产精品一区二区在线看 | 99久久激情| 国产精品理论片在线播放 | 国产成人一区二区三区久久精品 | 毛片久久久 | 日韩在线一级 | 免费日韩 精品中文字幕视频在线 | 久久99精品久久久久久秒播蜜臀 | 手机成人av| 在线免费试看 | 亚洲精品999 | 一级性视频 | 国产精品免费观看视频 | 黄色h在线观看 | 久久久午夜剧场 | 九七视频在线 | 最近最新中文字幕 | www.xxxx变态.com| 菠萝菠萝蜜在线播放 | 国产精品免费久久久久 | 热九九精品| 日韩电影精品一区 | 一区二区三区在线观看免费视频 | 欧美日本不卡 | 一区二区三区四区五区在线视频 | 美女又爽又黄 | 91成人区| 91福利免费 | 91久久久久久国产精品 | 久久伊人热 | 国内精品久久久久久久久久久久 | 在线亚洲成人 | 日韩三级视频 | 国产免费视频在线 | 久久久久久久久电影 | 五月综合久久 | 日韩极品在线 | 欧美综合久久 | 亚洲日韩中文字幕在线播放 | 久久婷婷亚洲 | 欧美日韩xxx | 婷婷视频在线播放 | 人人干97| 色婷婷综合在线 | 99久久婷婷国产综合精品 | 国产一在线精品一区在线观看 | 亚洲成aⅴ人在线观看 | 91成人国产| 一级淫片在线观看 | 欧美大片aaa| 亚洲成成品网站 | 一区中文字幕电影 | 五月天婷亚洲天综合网精品偷 | 色视频网站在线 | 91在线最新 | 欧美日韩在线免费观看视频 | 国产精品女同一区二区三区久久夜 | 国产一级黄色av | 亚洲丝袜一区 | 午夜精品久久久久久 | 国产淫片免费看 | 日韩av伦理片 | 欧美精品在线一区 | 五月天天在线 | 手机av观看 | 99久久婷婷国产综合亚洲 | 精品视频久久久 | 欧美午夜精品久久久久久孕妇 | 国产99久久久国产精品 | 国产视频一区在线免费观看 | 成年人黄色在线观看 | 看av免费 | 黄色片网站大全 | 在线成人免费av | 欧美久久久久久久久 | 免费黄色一区 | 国产美女永久免费 | 久久久久久久久久网 | 国产精品国产三级国产不产一地 | av免费电影在线观看 | 特级西西人体444是什么意思 | 日日草天天草 | 久久午夜免费视频 | 亚洲高清免费在线 | 日韩欧美精品在线观看视频 | 国产香蕉97碰碰碰视频在线观看 | 日韩欧美99| 成 人 黄 色视频免费播放 | 国内精品视频在线 | 天天鲁一鲁摸一摸爽一爽 | 久久人人爽人人爽人人片av免费 | 免费看wwwwwwwwwww的视频 久久久久久99精品 91中文字幕视频 | 国产精品爽爽爽 | 国产精品一区二区美女视频免费看 | 欧美国产日韩在线视频 | 夜夜躁日日躁狠狠久久av | 国产视频在线免费 | www.天天草 | 在线看成人av | 国产精品久久艹 | 亚洲欧美在线视频免费 | 91九色网站 | 欧美日韩亚洲精品在线 | 精品一区久久 | 韩国av不卡 | 国产精品一区久久久久 | 亚洲成人第一区 | 日韩视频免费 | 新版资源中文在线观看 | 久99久视频| 天天艹天天干天天 | 97国产精品 | 91综合色 | 色七七亚洲影院 | www欧美色| 久久久久久久久爱 | 中国美女一级看片 | 国产91电影在线观看 | 99999精品| 国产精品久久久久久婷婷天堂 | 探花视频在线观看免费 | 日韩美在线 | 国产裸体永久免费视频网站 | 欧美a视频在线观看 | 久久在线电影 | 蜜桃传媒一区二区 | 一区二区三区在线免费播放 | 国产五月婷婷 | 欧美日韩国产精品一区二区亚洲 | 高清国产午夜精品久久久久久 | 久久精品国产第一区二区三区 | 欧美电影在线观看 | 久久久久久国产精品 | 欧美日比视频 | av电影在线播放 | 最新av在线播放 | 久久免费视频5 | 91久久丝袜国产露脸动漫 | 成人毛片a | 黄色美女免费网站 | 久久99亚洲精品久久 | 亚洲国产日韩在线 | 欧美激精品 | 亚洲精选在线 | 亚洲精品视频在线观看网站 | 亚洲九九九 | 久久最新视频 | 一区二区三区四区五区六区 | 精品久久久免费视频 | www.色在线| 深夜福利视频在线观看 | 久久综合给合久久狠狠色 | 国产黑丝袜在线 | 国产.精品.日韩.另类.中文.在线.播放 | 一级做a视频 | 人人超在线公开视频 | 丁香花五月 | 色a综合| 91精品少妇偷拍99 | 91传媒免费观看 | 粉嫩av一区二区三区四区五区 | 天天射成人 | 激情五月激情综合网 | 天天躁天天躁天天躁婷 | 久久久久久国产精品亚洲78 | 国产高潮久久 | 国产一区二区视频在线播放 | 国产999精品久久久久久 | 99精品国产一区二区三区不卡 | 国产精品入口麻豆www | 91精品国产91久久久久 | 午夜视频在线观看一区 | 亚洲精品www. | 日韩欧美视频一区二区三区 | 中文字幕日韩一区二区三区不卡 | 麻豆激情电影 | av免费在线播放 | 国产精品久久久久久久久久久久午夜 | 亚洲 中文字幕av | 人人网人人爽 | 99久久综合狠狠综合久久 | 96视频免费在线观看 | 美女网站免费福利视频 | 国产不卡免费av | 免费中午字幕无吗 | 久久成人精品电影 | 91成人天堂久久成人 | 一区二区三区三区在线 | 麻豆影视在线免费观看 | 夜夜爽天天爽 | 最新影院 | 久久亚洲精品国产亚洲老地址 | 在线黄色国产电影 | 色婷婷久久久 | 中文字幕亚洲欧美 | 毛片激情永久免费 | 亚欧洲精品视频在线观看 | 亚洲精品高清一区二区三区四区 | 国产精品激情偷乱一区二区∴ | 天堂在线免费视频 | 在线午夜av | 日韩黄色av网站 | 久久综合色综合88 | 国产精品久久一区二区三区不卡 | 成人羞羞视频在线观看免费 | 亚洲一区二区三区四区精品 | 99精品偷拍视频一区二区三区 | av电影在线不卡 | 青青网视频 | 精品视频在线看 | 深爱激情站 | 日本高清久久久 | 精品一区二区av | 久久精品国产免费看久久精品 | 97视频免费在线观看 | 97偷拍在线视频 | 日韩av免费一区 | 日本精品一 | 欧美国产日韩一区二区三区 | 91综合久久一区二区 | 91精品国产三级a在线观看 | 国产三级精品三级在线观看 | 日韩欧美视频一区二区 | 日韩亚洲在线视频 | 国产成人精品电影久久久 | 亚洲最大的av网站 | 91网址在线看 | 狠狠干成人综合网 | 激情视频亚洲 | www.亚洲精品视频 | 国产一区成人 | 亚洲影视资源 | av中文在线观看 | 狠狠狠色丁香综合久久天下网 | 久久精久久精 | www.久久成人| 久久av一区二区三区亚洲 | 91av蜜桃 | 一区二三国产 | 久久久国产精品一区二区三区 | 亚洲精品色视频 | 免费三级av | 国产福利91精品一区二区三区 | 亚洲视频免费在线看 | 日韩电影在线一区二区 | 国产在线探花 | 91成人免费看片 | 婷婷久久综合九色综合 | 日韩精品在线一区 | 波多野结衣在线中文字幕 | 精品久久网 | 日本成人黄色片 | 中文在线免费视频 | 天天操天天干天天操天天干 | 911香蕉视频| 午夜影院在线观看18 | 天天操夜夜爱 | 香蕉影视在线观看 | 国产精品久久久久久一区二区三区 | 免费福利视频导航 | 久久九九影视 | 天天曰天天干 | 国产美女精品视频 | 国产精品自产拍在线观看中文 | 日本丶国产丶欧美色综合 | 99色在线视频 | 久久久久久99精品 | 国产视频999 | 精品久久国产一区 | 97精品国自产拍在线观看 | 狠狠躁夜夜躁人人爽超碰97香蕉 | 免费看色的网站 | 亚洲aⅴ在线观看 | 在线国产中文字幕 | 国产一级视频在线免费观看 | 91麻豆精品国产自产在线 | 亚洲男男gaygay无套同网址 | 一级黄色免费 | 粉嫩aⅴ一区二区三区 | 久久调教视频 | 国产在线2020 | 欧美一区二区三区在线 | 色综合久久久久网 | 久久精品一级片 | 操操色| 国产一区视频在线观看免费 | 成人在线超碰 | 97国产大学生情侣白嫩酒店 | 激情五月激情综合网 | 日本中文字幕在线 | 麻豆av一区二区三区在线观看 | 免费黄色av.| 久久精品视频网站 | 久久精品国产一区二区 | 日本久热| 国精产品永久999 | 日韩精品视频久久 | 国产日本在线 | 中文免费观看 | 国产精品久久久久久久久久免费看 | 亚洲综合在线视频 | 在线亚洲成人 | 国产乱码精品一区二区三区介绍 | 丰满少妇麻豆av | 国产又粗又长又硬免费视频 | 国产在线传媒 | 91亚洲精品久久久蜜桃网站 | 婷婷国产视频 | 国产午夜激情视频 | 国产在线久草 | 在线视频 你懂得 | 6080yy午夜一二三区久久 | 国产精品成人在线观看 | 91精品国产91热久久久做人人 | 美女久久久久久久 | 香蕉视频亚洲 | www·22com天天操| 久久精品日本啪啪涩涩 | 97在线精品国自产拍中文 | 亚洲综合成人av | 久久久久久久国产精品 | 国产色在线视频 | 日本性生活一级片 | 国产美女免费视频 | 中文字幕黄色av | 国产原创av在线 | 人人插人人舔 | 国模视频一区二区三区 | 国产精品一区二区白浆 |