Skip to content
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 object.dat
Binary file not shown.
1 change: 1 addition & 0 deletions oosT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�ͻ�����ã��������
Binary file modified out/production/reviewJava/dataStructureImpl/LinkListDemo.class
Binary file not shown.
3 changes: 3 additions & 0 deletions out/production/reviewJava/fruit-config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AppleName=thinkingInJava.learning.reflection.exer2.Apple
BananaName=thinkingInJava.learning.reflection.exer2.Banana
OrangeName=thinkingInJava.learning.reflection.exer2.Orange
2 changes: 2 additions & 0 deletions out/production/reviewJava/infoClassLoaderTest.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
host=127.0.0.1
port=8989
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.
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.
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.
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.
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.
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.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name=Tom Cruse
psw=qwe123
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Hello esteemed interviewer,
I'm delighted to be here today for this interview opportunity. My name is weiwenxu,
and I am currently a graduate student at Xi'an University of Architecture and Technology,
specializing in Electronic Information.
Throughout my academic journey, I've had the privilege of participating in the
"Huawei Cup" Graduate Mathematical Modeling Competition twice, earning both a
national third prize and a second prize. Additionally, I've been actively engaged
in academic research, having authored a paper on multi-task graph convolutional
neural networks, which I'm preparing to submit to relevant journals.
Beyond my academic achievements, I have a strong interest in backend development.
I've self-taught myself various technologies such as Java, Spring Boot, MySQL, and
MyBatis, and I've applied these skills to successfully develop a backend business logic
for a mall project named GgM.
I am fully aware of the rare opportunity it would be to join your esteemed industry.
If given the chance to be a part of your team, I am committed to cherishing this opportunity
and dedicating myself to continuous learning and growth, contributing my best efforts to the
company's success.
Thank you for considering me for this opportunity. I eagerly look forward to the possibility
of becoming a valuable member of your company. Thank you!
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Hello esteemed interviewer,
I'm delighted to be here today for this interview opportunity. My name is weiwenxu,
and I am currently a graduate student at Xi'an University of Architecture and Technology,
specializing in Electronic Information.
Throughout my academic journey, I've had the privilege of participating in the
"Huawei Cup" Graduate Mathematical Modeling Competition twice, earning both a
national third prize and a second prize. Additionally, I've been actively engaged
in academic research, having authored a paper on multi-task graph convolutional
neural networks, which I'm preparing to submit to relevant journals.
Beyond my academic achievements, I have a strong interest in backend development.
I've self-taught myself various technologies such as Java, Spring Boot, MySQL, and
MyBatis, and I've applied these skills to successfully develop a backend business logic
for a mall project named GgM.
I am fully aware of the rare opportunity it would be to join your esteemed industry.
If given the chance to be a part of your team, I am committed to cherishing this opportunity
and dedicating myself to continuous learning and growth, contributing my best efforts to the
company's success.
Thank you for considering me for this opportunity. I eagerly look forward to the possibility
of becoming a valuable member of your company. Thank you!
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Hello esteemed interviewer,
I'm delighted to be here today for this interview opportunity. My name is weiwenxu,
and I am currently a graduate student at Xi'an University of Architecture and Technology,
majoring in Electronic Information.
Throughout my academic journey, I've had the privilege of participating in the
"Huawei Cup" Graduate Mathematical Modeling Competition twice, earning both a
national third prize and a second prize respectivly. Additionally, I've been actively engaged
in academic research, having authored a paper on multi-task graph convolutional
neural networks, which I'm preparing to submit to relevant journals.
Beyond my academic achievements, I have a strong interest in backend development.
I've self-taught myself various technologies such as Java, Spring Boot, MySQL, and
MyBatis, and I've applied these skills to successfully develop a backend business logic
for a mall project named GgM.
I am fully aware of the rare opportunity to join you.If given the chance to be a part of your team,
I am committed to cherishing this opportunity and dedicating myself to continuous learning and growth,
contributing my best efforts to the company's success.
Thank you for considering me for this opportunity. I am eagerly looking forward to have the chance to join you.
Thank you!
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
hello
jessy
billy
jerry
merry
kk
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.
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.
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.
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.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
host=127.0.0.1
port=8989
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.
2 changes: 2 additions & 0 deletions src/dataStructureImpl/LinkListDemo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dataStructureImpl;

import java.util.Comparator;
import java.util.Scanner;

public class LinkListDemo {
Expand All @@ -23,6 +24,7 @@ public static void main(String[] args) {
System.out.print("[ " + p.data + " | (" + p.next + ") ]" + "-->");
p = p.next;
}
System.out.println(linkListHead.length);

// System.out.println(linkListHead+"[--]"+linkListHead.data + "--" + linkListHead.next);
// System.out.println(linkListHead.next+"[--]"+linkListHead.next.data + "--" + linkListHead.next.next);
Expand Down
3 changes: 3 additions & 0 deletions src/fruit-config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AppleName=thinkingInJava.learning.reflection.exer2.Apple
BananaName=thinkingInJava.learning.reflection.exer2.Banana
OrangeName=thinkingInJava.learning.reflection.exer2.Orange
2 changes: 2 additions & 0 deletions src/infoClassLoaderTest.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
host=127.0.0.1
port=8989
7 changes: 4 additions & 3 deletions src/thinkingInJava/learning/ToBinaryDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ public static void main(String[] args) {

System.out.println("======================");

int b = 1;
int b = 10;
System.out.println(Integer.toBinaryString(b));
System.out.println(Integer.toBinaryString(b>>=10));
System.out.println(Integer.toBinaryString(b>>>=10));
System.out.println(Integer.toBinaryString(b>>=3));
System.out.println(Integer.toBinaryString(b<<=4));
System.out.println(Integer.toHexString(17));


}
Expand Down
37 changes: 37 additions & 0 deletions src/thinkingInJava/learning/api/compare/ComparableTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package thinkingInJava.learning.api.compare;

import org.junit.Test;

import java.util.Arrays;

public class ComparableTest {
@Test
public void test1() {
String array[] = new String[]{"Tom", "Jack", "Tony", "Hallen"};

Arrays.sort(array);

for (String a : array
) {
System.out.println(a);
}
}

@Test
public void test2() {
String array[] = new String[]{"Tom", "Jack", "Tony", "Hallen"};
Product product[] = new Product[5];
product[0] = new Product("BMW", 50);
product[1] = new Product("Benz", 70);
product[2] = new Product("Audi", 40);
product[3] = new Product("Das Auto", 20);
product[4] = new Product("BYD", 35);

Arrays.sort(product);

for (Product p :
product) {
System.out.println(p.toString());
}
}
}
60 changes: 60 additions & 0 deletions src/thinkingInJava/learning/api/compare/ComparatorTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package thinkingInJava.learning.api.compare;

import org.junit.Test;

import java.util.Arrays;
import java.util.Comparator;

public class ComparatorTest {
@Test
public void test1() {
Product products[] = new Product[5];
products[0] = new Product("BMW", 50);
products[1] = new Product("Benz", 70);
products[2] = new Product("Audi", 40);
products[3] = new Product("Das Auto", 20);
products[4] = new Product("BYD", 35);

//����һ��ʵ����Comparator�ӿڵ�ʵ����
Comparator comparator = new Comparator() {
@Override
public int compare(Object o1, Object o2) {
if (o1 == o2) {
return 0;
}
if (o1 instanceof Product && o2 instanceof Product) {
Product p1 = (Product) o1;
Product p2 = (Product) o2;

return Double.compare(p1.getPrice(), p2.getPrice());
}
throw new RuntimeException("���Ͳ�ƥ��");
}
};

Comparator comparator1 = new Comparator() {
@Override
public int compare(Object o1, Object o2) {
if (o1 == o2) {
return 0;
}
if (o1 instanceof Product && o2 instanceof Product) {
Product p1 = (Product) o1;
Product p2 = (Product) o2;

return p1.getName().compareTo(p2.getName());
}
throw new RuntimeException("���Ͳ�ƥ��");
}
};


Arrays.sort(products,comparator1);

for (Product p :
products) {
System.out.println(p.toString());
}

}
}
53 changes: 53 additions & 0 deletions src/thinkingInJava/learning/api/compare/Product.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package thinkingInJava.learning.api.compare;

public class Product implements Comparable<Product>{
private String name;
private Integer price;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Integer getPrice() {
return price;
}

public void setPrice(Integer price) {
this.price = price;
}

public Product(String name, Integer price) {
this.name = name;
this.price = price;
}

@Override
public String toString() {
return "Product{" +
"name='" + name + '\'' +
", price=" + price +
'}';
}

//���ռ۸�����
//�������ֵ����������ǰ�����
//�������ֵ�Ǹ�������ǰ����С
//�������ֵ��0��һ����
@Override
public int compareTo(Product o) {
if (o == this) {
return 0;
}

if (o instanceof Product) {
Product p = (Product) o;
return Double.compare(this.price, p.price);
}
throw new RuntimeException("���Ͳ�ƥ��");

}
}
19 changes: 19 additions & 0 deletions src/thinkingInJava/learning/api/date/TestT.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package thinkingInJava.learning.api.date;

import org.junit.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TestT {
@Test
public void test1() {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy MM dd | HH:mm:ss");

Date date = new Date();

String s = simpleDateFormat.format(date);

System.out.println(s);
}
}
66 changes: 66 additions & 0 deletions src/thinkingInJava/learning/api/date/before8/DataTimeTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package thinkingInJava.learning.api.date.before8;

import org.junit.Test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DataTimeTest {
/*
Data���ʹ��
|--java.util.Data
> ������������ʹ�� Date(),Date(long timetemp)
> ����������ʹ�� 1.toString() 2 getTime()
|----java.sql.Data ��Ӧ�����ݿ���
*/

@Test
public void test1() throws ParseException {
Date date1 = new Date(); //����һ�����ڵ�ǰϵͳʱ���Data��
System.out.println(date1.toString());
System.out.println(date1.getTime()); //��Ӧ������

SimpleDateFormat format = new SimpleDateFormat();
String format1 = format.format(date1);
System.out.println(format1);
//���� ʱ���ַ���
System.out.println(format.parse("23-11-22 ����4:46"));

Date date2 = new Date(1800552833223L); //ָ��ʱ�����Dateʵ��
System.out.println(date2.toString());
}

@Test
public void test2() {
java.sql.Date date1 = new java.sql.Date(2340552833223L); //����һ�����ڵ�ǰϵͳʱ���Data��
System.out.println(date1.toString());
System.out.println(date1.getTime());
}

@Test
public void test3() throws ParseException {
//SimpleDateFormat �Զ����ʽ
//1.��ȡ��ǰϵͳʱ��
Date date = new Date();
//2.�����Զ����ʽ�IJ���������SimpleDateFormat(String pattern)���������õ�SimpleDateFormatʵ��
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd,EEE | yyyy HH:mm:ss Z");
//3.ͨ��ʵ������format�����������뵱ǰϵͳʱ�����
String format = simpleDateFormat.format(date);
System.out.println(format);


//����
Date parse = simpleDateFormat.parse("11-22,������ | 2023 16:50:03 +0800");
System.out.println(parse);
}

@Test
public void calendarTest() {
Calendar instance = Calendar.getInstance();
System.out.println(instance.get(Calendar.DAY_OF_WEEK));
System.out.println(instance.get(Calendar.DAY_OF_YEAR));
System.out.println(instance.get(Calendar.DAY_OF_MONTH));
}
}
24 changes: 24 additions & 0 deletions src/thinkingInJava/learning/api/date/exer/Exer1.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package thinkingInJava.learning.api.date.exer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Exer1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd");
System.out.print("�����������գ�1998/05/18��");

String getDate = sc.next();
try {
Date parse = simpleDateFormat.parse(getDate);
long time = parse.getTime();
java.sql.Date date = new java.sql.Date(time);
System.out.println(date);
} catch (ParseException e) {
e.printStackTrace();
}
}
}
Loading