Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added JavaSE/bin/liucong/JavaSe(Liucong).zip
Binary file not shown.
Binary file added JavaSE/bin/mine/eight/random/Random.class
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/fifteen/zhihuan/ZhiHuan.class
Binary file not shown.
Binary file added JavaSE/bin/mine/five/shopping/Shopping.class
Binary file not shown.
Binary file added JavaSE/bin/mine/four/houchitao/HouZiChiTao.class
Binary file not shown.
Binary file added JavaSE/bin/mine/fourteen/zimu/ZiMu.class
Binary file not shown.
Binary file added JavaSE/bin/mine/nine/tianshu/TianShu.class
Binary file not shown.
Binary file added JavaSE/bin/mine/one/pingrunnian/PingRunNian.class
Binary file not shown.
Binary file added JavaSE/bin/mine/seven/login/Login.class
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/ten/fengzhuang/FengZhuang.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/thirtyFive/StringInteger/Demo.class
Binary file not shown.
Binary file added JavaSE/bin/mine/thirtyFive/StringInteger/Test.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JavaSE/bin/mine/thirtySeven/airplane/imgs/bee.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JavaSE/bin/mine/thirtySeven/airplane/imgs/bullet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/thirtyTwo/carRentSystem/Bus.class
Binary file not shown.
Binary file added JavaSE/bin/mine/thirtyTwo/carRentSystem/Car.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/twelve/hero/Assassin.class
Binary file not shown.
Binary file added JavaSE/bin/mine/twelve/hero/Hero.class
Binary file not shown.
Binary file added JavaSE/bin/mine/twelve/hero/Rabbi.class
Binary file not shown.
Binary file added JavaSE/bin/mine/twelve/hero/Shooter.class
Binary file not shown.
Binary file added JavaSE/bin/mine/twelve/hero/Warrior.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/twentyNine/breakWhileA/Demo.class
Binary file not shown.
Binary file added JavaSE/bin/mine/twentyOne/map/mapDemo.class
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/twentySix/IO/Menu.class
Binary file not shown.
Binary file not shown.
Binary file added JavaSE/bin/mine/two/calculator/JiSuanQi.class
Binary file not shown.
Binary file added JavaSE/bin/note/JAVA基础实训练习.docx
Binary file not shown.
Binary file added JavaSE/bin/note/JavaSe.docx
Binary file not shown.
148 changes: 148 additions & 0 deletions JavaSE/bin/note/JavaSe总结
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
public static ��װ�� valueOf(��Ӧ������������);
int intValue(Integer i);
static int Integer.parseInt(String);

String:
public char charAt(int index);
public int compareTo(String str);
public String(byte[] bytes, int offset, int length);
public String(char[] value, int offset, int count);
public boolean endsWith(String suffix);
public int indexOf(int ch);
public int indexOf(int ch, int fromIndex);
public int indexOf(String str);
public int indexOf(String str, int fromIndex);
public int lastIndexOf(int ch)
public boolean isEmpty();
public String substring(int beginIndex);
public String substring(int beginIndex, int endIndex);
public char[] toCharArray();
length();
toLowerCase();
toUpperCase();
Arrays.toString(arr);
Arrays.sort(arr);
Arrays.copyOf(int[] original, int newLength);

����
[]-------��ʾһ��λ�ã������λ����ֻ��һ�ֿ��ܣ����Ժ��Բ�д
()-------��ʾһ����ϣ���������λ�������������ģ�
{}-------���������ַ������ȵķ�Χ
public String[] split(regex);
public boolean matches(regex);

StringBuffer/StringBuilder��
append(Object obj);
insert(int index, Object obj);
delete(int beginIndex, int endIndex);
deleteCharAt(int index);

Collection:
boolean add(Object obj);
void add(int index, Object obj);
int size();
void clear();
boolean isEmpty();
boolean contains();
E get(int index);
E set(int index, E element);
E remove(int index);
boolean remove(Object obj);
void addFirst(E e); //only used in LinkedList
void addLast(E e); //only used in LinkedList
public static List Arrays.asList(Array arr);
list.toArray(arr);
Collections.sort(list);

Map:
V put(K k, V v);
Set<K> keySet();
int size();
V remove(K k);
boolean remove(K k, V v);
public boolean containsKey(Object key);
public boolean containsValue(Object value);
V get(Object key);
boolean isEmpty();
public void clear();

Iterator;
Iterator it = list/set.iterator();
boolean hasNext();
E next();

File:
public static String separator;
public boolean createNewFile() throws IOException;
public boolean mkdir();
public boolean delete();
public File getAbsoluteFile();
public String getAbsolutePath();
public String getName();
public int compareTo(File f);
public long length();��ȡ�ļ��з��ŵĸ���
public File[] listFiles();
public String[] list();
public boolean exists();
public boolean isAbsolute();
public boolean isDirectory();
public boolean isFile();
public boolean isHidden();

Reader��//�ַ�
FileReader: public int read(),
public int read(char[] buf)
BufferedReader: public int read(),
public int read(char[] buf, int off, int len),
String readLine()
Writer: //�ַ�
FileWriter: public void write(char[] buf),
public void write(char[] buf, int beginIndex, int len),
public void write(String str),
public void write(String str, int beginIndex, int len)
BufferedWriter: public void write(int ch),
public void write(char[] buf, int off, int len),
public void write(String str, int off, int len),
public void newLine()
InputStream: //�ֽ�
FileInputStream: public int read(),
public int read(byte[] buf),
public int read(byte[] buf,int beginIndex,int len)
BufferedInputStream: public int read(),
public int read(byte[] buf,int beginIndex,int len)
OutputStream: //�ֽ�
FileOutputStream: public void write(int b),
public void write(byte[] buf),
public void write(byte[] buf,int beginIndex,int len)
BufferedOutputStream: public void write(int b),
public void write(byte[] buf,int beginIndex,int len)
InputStreamReader/OutputStreamWriter //ת����

for(int i=1;i<arr.length;i++){//ð���㷨
for(int j=1;j<arr.length-i;j++){
//�����
}

�۰���ң�����ָ��Ԫ���������е�λ�ã���������ڷ���-1
public static int zheBan(int[] ar,int num){
int begin=0;//������ʼλ��
int end=ar.length-1;//���ҽ���λ��
/* 1.�������λ��С����ʼλ�ã����������鲻����
* 2.�������λ�ô�����ʼλ�ã��������ж��Ԫ��
* 3.�������λ�õ�����ʼλ�ã�������ֻ��һ��Ԫ��
* */
while(begin<=end){
int middle=(begin+end)/2;//�м�λ��
if(num==ar[middle]){
return middle;
}else if(num>ar[middle]){
begin=middle+1;
}else{
end=middle-1;
}
}
return -1;
}

�̣߳���word��Ľ�ͼ��

Binary file not shown.
Binary file added JavaSE/src/liucong/JavaSe(Liucong).zip
Binary file not shown.
21 changes: 21 additions & 0 deletions JavaSE/src/mine/eight/random/Random.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package mine.eight.random;

import java.util.Scanner;

public class Random {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int number = (int) (Math.random()*5);//[0,5)
String[] name = {"����","����","����","��","������"};
System.out.print("1.�齱\t2.�˳�");
int num = sc.nextInt();
if(num==1){
System.out.println("�����û�Ϊ��"+ name[number]);
}else{
System.out.println("�˳��齱ϵͳ.");
}
}

}
30 changes: 30 additions & 0 deletions JavaSE/src/mine/eleven/staticdemo/StaticDemo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package mine.eleven.staticdemo;

import java.util.Scanner;

public class StaticDemo {
private static int count = 0;

public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("��ͶƱ: ");
Scanner in = new Scanner(System.in);
int choice;
while(count<=100){
System.out.println("��ѯ��ǰƱ�������룺 chaxun\nͶƱ�����룺toupiao");
String check = in.nextLine();
if("chaxun".equals(check)){
System.out.println("��ǰƱ��Ϊ��"+count);
}else if("toupiao".equals(check)){
System.out.println("��ͶƱ: ");
choice = in.nextInt();
System.out.println("��лͶƱ��");
count++;
}else{
System.out.println("��Чָ����������룡");
}
}
System.out.println("��ʾͶƱ�ѽ�����");
}

}
27 changes: 27 additions & 0 deletions JavaSE/src/mine/fifteen/zhihuan/ZhiHuan.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package mine.fifteen.zhihuan;

import java.util.Arrays;
import java.util.Scanner;

public class ZhiHuan {

public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("������һ������:");
Scanner in = new Scanner(System.in);
int number = in.nextInt();
String number2 = String.valueOf(number);
char[] number3 = new char[number2.length()];
number3 = number2.toCharArray();
char t;
for(int i=0; i<(number3.length+1)/2-1; i++){
t = number3[number3.length-1-i];
number3[number3.length-1-i] = number3[i];
number3[i] = t;
}
number2 = String.valueOf(number3);
number = Integer.parseInt(number2);
System.out.println(number);
}

}
24 changes: 24 additions & 0 deletions JavaSE/src/mine/five/shopping/Shopping.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package mine.five.shopping;

import java.util.Scanner;

public class Shopping {

public static void main(String[] args) {
// TODO Auto-generated method stub

System.out.println("n �˳���\n������ʾ�˵���");
Scanner in = new Scanner(System.in);

String choice = in.next();
while((!"n".equals(choice))){
System.out.println("��ӭʹ��Ǭ���̳ǹ���ϵͳ\n"
+ "1��T��\t��198.00\n"
+ "2������\t��588.88\n"
+ "3��ipad\t��2018.18");
choice = in.next();
}
System.out.println("����");
}

}
15 changes: 15 additions & 0 deletions JavaSE/src/mine/four/houchitao/HouZiChiTao.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package mine.four.houchitao;

public class HouZiChiTao {

public static void main(String[] args) {
// TODO Auto-generated method stub
int n =1;
for(int i=1; i<10; i++){
n = 2*(n+1);
}
System.out.println(n);

}

}
21 changes: 21 additions & 0 deletions JavaSE/src/mine/fourteen/zimu/ZiMu.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package mine.fourteen.zimu;

import java.util.Scanner;

public class ZiMu {

public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("������һ����ĸ:");
Scanner in = new Scanner(System.in);
String input = in.nextLine();
char[] aCount = input.toCharArray();
int count = 0;
for(int i=0; i<input.length(); i++){
if(aCount[i]=='a'){
count++;
}
}
System.out.println("��ĸa�ĸ���Ϊ:"+count);
}
}
27 changes: 27 additions & 0 deletions JavaSE/src/mine/nine/tianshu/TianShu.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package mine.nine.tianshu;

import java.util.Scanner;

public class TianShu {

public static void main(String[] args) {
// TODO Auto-generated method stub
int[] day = {31,28,31,30,31,30,31,31,30,31,30,31};
Scanner in = new Scanner(System.in);
System.out.println("year:");
int year = in.nextInt();
System.out.println("m:");
int month = in.nextInt();
System.out.println("d:");
int date = in.nextInt();
if(year%400==0 || (year%4 ==0 && year%100 != 0)){
day = new int[]{31,29,31,30,31,30,31,31,30,31,30,31};
}
int number = 0;
for(int i=0; i<month-1; i++){
number += day[i];
}
System.out.println(number+date);
}

}
21 changes: 21 additions & 0 deletions JavaSE/src/mine/one/pingrunnian/PingRunNian.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package mine.one.pingrunnian;

import java.util.Scanner;

public class PingRunNian {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
System.out.print("year:");
int year = in.nextInt();
if(year%4 !=0){
System.out.println("��������");
}else if(year%100 == 0 ){
System.out.println("��������");
}else{
System.out.println("������");
}
}

}
35 changes: 35 additions & 0 deletions JavaSE/src/mine/seven/login/Login.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package mine.seven.login;

import java.util.Scanner;

public class Login {

public static void main(String[] args) {
// TODO Auto-generated method stub
String username = "Tom";
String password = "Tom123";


Scanner in = new Scanner(System.in);

while(true){
System.out.println("�������û�����");
String user = in.nextLine();
if((!user.equals(username))){
System.out.println("�û����������������룺");
continue;
}
System.out.println("���������룺");
String pwd = in.nextLine();
if((!pwd.equals(password))){
System.out.println("����������������룺");
continue;
}else{
System.out.println("��½�ɹ���");
break;
}
}

}

}
Loading