diff --git a/group22/1014331282/Mywork_LX/.classpath b/group22/1014331282/Mywork_LX/.classpath
new file mode 100644
index 0000000000..373dce4005
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/.classpath
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/group22/1014331282/Mywork_LX/.project b/group22/1014331282/Mywork_LX/.project
new file mode 100644
index 0000000000..1290d27942
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/.project
@@ -0,0 +1,17 @@
+
+
+ Mywork_LX
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/group22/1014331282/Mywork_LX/.settings/org.eclipse.jdt.core.prefs b/group22/1014331282/Mywork_LX/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..3a21537071
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,11 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/ArrayList.java b/group22/1014331282/Mywork_LX/src/week1_0306/ArrayList.java
new file mode 100644
index 0000000000..5446c9b557
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/ArrayList.java
@@ -0,0 +1,114 @@
+package week1_0306;
+
+
+
+public class ArrayList implements List
+{
+
+ private int size;
+
+ private Object[] elementData ;
+
+ public ArrayList()
+ {
+ elementData = new Object[3];
+ size=-1;
+ }
+
+ public void add(Object o)
+ {
+ if(size >= elementData.length-1)
+ {
+ Object[] replaceData=new Object[elementData.length+5];
+ System.arraycopy(elementData, 0, replaceData, 0, elementData.length);
+ elementData = replaceData;
+ }
+ elementData[++size] = o;
+ }
+
+ public void add(int index, Object o)
+ {
+ Object[] replaceData=new Object[11];
+ for(int i=0;i=0 && size>=0)
+ return elementData[index];
+ else return null;
+ }
+
+
+ public Object remove(int index)
+ {
+ size--;
+ Object o=elementData[index];
+ if (index0)
+ {
+ for(int i=index;i=0)
+ return size+1;
+ else
+ return 0;
+ }
+
+ public Iterator iterator()
+ {
+ return new ArrayListIterator(this);
+ }
+
+ private class ArrayListIterator implements Iterator
+ {
+ ArrayList l=null;
+ int pos = 0;
+ private ArrayListIterator(ArrayList l)
+ {
+ this.l=l;
+ }
+
+ @Override
+ public boolean hasNext() {
+ // TODO Auto-generated method stub
+ pos++;
+ if(pos > size)
+ return false;
+ else return true;
+ }
+
+ @Override
+ public Object next() {
+ // TODO Auto-generated method stub
+ return elementData[pos];
+
+ }
+
+ public Object remove()
+ {
+ return this.l.remove(pos);
+ }
+
+ }
+
+}
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/BinaryTree.java b/group22/1014331282/Mywork_LX/src/week1_0306/BinaryTree.java
new file mode 100644
index 0000000000..e5b23d37ce
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/BinaryTree.java
@@ -0,0 +1,135 @@
+package week1_0306;
+
+import java.util.Comparator;
+
+import week1_0306.BinaryTree.BinaryTreeNode;
+
+public class BinaryTree
+{
+ private BinaryTreeNode root;
+
+ private BinaryTreeNode pointer;
+
+ public BinaryTreeNode getRoot() {
+ return root;
+ }
+
+ public void setRoot(BinaryTreeNode root) {
+ this.root = root;
+ }
+
+ public BinaryTreeNode getPointer() {
+ return pointer;
+ }
+
+ public void setPointer(BinaryTreeNode pointer) {
+ this.pointer = pointer;
+ }
+
+ public BinaryTree()
+ {
+ root=new BinaryTreeNode();
+ pointer=root;
+ }
+
+ public BinaryTreeNode insert(Object o,Comparator c)
+ {
+
+ pointer= root.insert(o, c);
+ return pointer;
+ }
+
+ public void printTree()
+ {
+ root.printNode();
+ }
+
+ public class BinaryTreeNode
+ {
+
+ private Object data;
+ private BinaryTreeNode left;
+ private BinaryTreeNode right;
+
+ public Object getData() {
+ return data;
+ }
+
+ public void setData(Object data) {
+ this.data = data;
+ }
+
+ public BinaryTreeNode getLeft() {
+ pointer=left;
+ return left;
+ }
+
+ public void setLeft(BinaryTreeNode left) {
+ this.left = left;
+ }
+
+ public BinaryTreeNode getRight() {
+ pointer=right;
+ return right;
+ }
+
+ public void setRight(BinaryTreeNode right) {
+ this.right = right;
+ }
+
+
+
+ public BinaryTreeNode insert(Object o, Comparator c) //建有规律的树+插入
+ {
+ if(this.data == null)
+ {
+ this.data = o;
+ return this;
+ }
+
+ int i = c.compare(this.data,o);
+
+ if( i > 0 )
+ {
+ if(this.left == null)
+ {
+ this.left=new BinaryTreeNode();
+ this.left.data=o;
+ return this.left;
+ }
+ else
+ return this.left.insert(o, c);
+ }
+ else if(i < 0)
+ {
+ if(this.right == null)
+ {
+ this.right=new BinaryTreeNode();
+ this.right.data = o;
+ return this.right;
+ }
+
+ else
+ return this.right.insert(o, c);
+ }
+ else
+ {
+ return this;
+ }
+
+ }
+
+ public void printNode()
+ {
+ ScoreRecord s=(ScoreRecord)(this.getData());
+ System.out.println(s.getName()+" "+s.getId());
+ if(this.getLeft()!=null)
+ this.getLeft().printNode();
+ if(this.getRight()!=null)
+ this.getRight().printNode();
+ else return;
+ }
+
+ }
+
+}
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/Iterator.java b/group22/1014331282/Mywork_LX/src/week1_0306/Iterator.java
new file mode 100644
index 0000000000..26471af1cd
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/Iterator.java
@@ -0,0 +1,9 @@
+package week1_0306;
+
+public interface Iterator {
+
+ public boolean hasNext();
+ public Object next();
+ public Object remove();
+
+}
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/LinkedList.java b/group22/1014331282/Mywork_LX/src/week1_0306/LinkedList.java
new file mode 100644
index 0000000000..e540a7c115
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/LinkedList.java
@@ -0,0 +1,181 @@
+package week1_0306;
+
+
+
+public class LinkedList implements List
+{
+ private Node head;
+
+ private static int size = 0;
+
+ public LinkedList()
+ {
+ head=new Node();
+
+ }
+
+
+ private static class Node
+ {
+ Object data;
+ Node next;
+ }
+
+ public void add(Object o)
+ {
+ Node h = head;
+ while(h.next!= null)
+ {
+ h=h.next;
+ }
+ Node p = new Node();
+ p.data=o;
+ p.next=null;
+ h.next= p;
+
+ size++;
+ }
+
+ public void add(int index, Object o)
+ {
+ Node h=head.next;
+ int i=0;
+ while(i size)
+ return false;
+ else return true;
+ }
+
+ @Override
+ public Object next() {
+ // TODO Auto-generated method stub
+ return l.get(pos);
+
+ }
+
+ public Object remove()
+ {
+ return this.l.remove(pos);
+ }
+
+ }
+
+
+}
+
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/List.java b/group22/1014331282/Mywork_LX/src/week1_0306/List.java
new file mode 100644
index 0000000000..7ec758f832
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/List.java
@@ -0,0 +1,18 @@
+package week1_0306;
+
+
+
+public interface List {
+
+ public void add(Object o);
+
+ public void add(int index, Object o);
+
+ public Object get(int index);
+
+ public Object remove(int index);
+
+ public int size();
+
+ public Iterator iterator();
+}
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/Queue.java b/group22/1014331282/Mywork_LX/src/week1_0306/Queue.java
new file mode 100644
index 0000000000..e9c32b8e68
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/Queue.java
@@ -0,0 +1,35 @@
+package week1_0306;
+
+public class Queue {
+
+ private LinkedList queue = new LinkedList();
+
+ public void enQueue(Object o)//进队列
+ {
+ queue.addFirst(o);
+ }
+
+ public Object deQueue()//出队列
+ {
+ return queue.removeLast();
+ }
+
+ public boolean isEmpty()
+ {
+ if(queue.get(0)==null)
+ return true;
+ else return false;
+ }
+
+ public int size()
+ {
+ return queue.size();
+ }
+
+ public Queue() {
+ // TODO Auto-generated constructor stub
+ }
+
+
+
+}
diff --git a/group22/1014331282/Mywork_LX/src/week1_0306/ScoreRecord.java b/group22/1014331282/Mywork_LX/src/week1_0306/ScoreRecord.java
new file mode 100644
index 0000000000..f3bce47950
--- /dev/null
+++ b/group22/1014331282/Mywork_LX/src/week1_0306/ScoreRecord.java
@@ -0,0 +1,180 @@
+package week1_0306;
+/*
+提示录入几个学生信息
+录入学号姓名三门成绩
+打印学生中语文数学英语成绩最高的那个人
+统计每门课的平均成绩及总成绩的平均值
+封装处理
+*/
+import java.util.Scanner;
+import java.util.Comparator;
+
+public class ScoreRecord implements Comparator
+{
+
+ private int id;
+ private String name;
+ private float C_Score;
+ private float M_Score;
+ private float E_Score;
+
+ public ScoreRecord(){};
+
+ public ScoreRecord(int id,String name,float C_Score, float M_Score, float E_Score)
+ {
+ this.id=id;
+ this.name=name;
+ this.C_Score=C_Score;
+ this.E_Score=E_Score;
+ this.M_Score=M_Score;
+ }
+
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public float getC_Score() {
+ return C_Score;
+ }
+
+ public void setC_Score(float c_Score) {
+ C_Score = c_Score;
+ }
+
+ public float getM_Score() {
+ return M_Score;
+ }
+
+ public void setM_Score(float m_Score) {
+ M_Score = m_Score;
+ }
+
+ public float getE_Score() {
+ return E_Score;
+ }
+
+ public void setE_Score(float e_Score) {
+ E_Score = e_Score;
+ }
+
+ public int compare(Object o1, Object o2)
+ {
+ ScoreRecord s1 = (ScoreRecord) o1;
+ ScoreRecord s2 = (ScoreRecord) o2;
+ if(s1.id>s2.id)
+ return 1;
+ else if(s1.id==s2.id)
+ return 0;
+ else
+ return -1;
+ }
+
+ public int compareTo(Object o1)
+ {
+ ScoreRecord s = (ScoreRecord) o1;
+ if(this.id>s.id)
+ return 1;
+ else if(this.id==s.id)
+ return 0;
+ else return -1;
+ }
+
+ public static void readData(ScoreRecord[] arr)
+ {
+ Scanner a=new Scanner(System.in);
+ for(int i=0;i7->10 , 閫嗙疆鍚庡彉涓 10->7->3
+ */
+ public void reverse(){
+
+ }
+
+ /**
+ * 鍒犻櫎涓涓崟閾捐〃鐨勫墠鍗婇儴鍒
+ * 渚嬪锛歭ist = 2->5->7->8 , 鍒犻櫎浠ュ悗鐨勫间负 7->8
+ * 濡傛灉list = 2->5->7->8->10 ,鍒犻櫎浠ュ悗鐨勫间负7,8,10
+
+ */
+ public void removeFirstHalf(){
+
+ }
+
+ /**
+ * 浠庣i涓厓绱犲紑濮嬶紝 鍒犻櫎length 涓厓绱 锛 娉ㄦ剰i浠0寮濮
+ * @param i
+ * @param length
+ */
+ public void remove(int i, int length){
+
+ }
+ /**
+ * 鍋囧畾褰撳墠閾捐〃鍜宭ist鍧囧寘鍚凡鍗囧簭鎺掑垪鐨勬暣鏁
+ * 浠庡綋鍓嶉摼琛ㄤ腑鍙栧嚭閭d簺list鎵鎸囧畾鐨勫厓绱
+ * 渚嬪褰撳墠閾捐〃 = 11->101->201->301->401->501->601->701
+ * listB = 1->3->4->6
+ * 杩斿洖鐨勭粨鏋滃簲璇ユ槸[101,301,401,601]
+ * @param list
+ */
+ public static int[] getElements(LinkedList list){
+ return null;
+ }
+
+ /**
+ * 宸茬煡閾捐〃涓殑鍏冪礌浠ュ奸掑鏈夊簭鎺掑垪锛屽苟浠ュ崟閾捐〃浣滃瓨鍌ㄧ粨鏋勩
+ * 浠庡綋鍓嶉摼琛ㄤ腑涓垹闄ゅ湪list涓嚭鐜扮殑鍏冪礌
+
+ * @param list
+ */
+
+ public void subtract(LinkedList list){
+
+ }
+
+ /**
+ * 宸茬煡褰撳墠閾捐〃涓殑鍏冪礌浠ュ奸掑鏈夊簭鎺掑垪锛屽苟浠ュ崟閾捐〃浣滃瓨鍌ㄧ粨鏋勩
+ * 鍒犻櫎琛ㄤ腑鎵鏈夊肩浉鍚岀殑澶氫綑鍏冪礌锛堜娇寰楁搷浣滃悗鐨勭嚎鎬ц〃涓墍鏈夊厓绱犵殑鍊煎潎涓嶇浉鍚岋級
+ */
+ public void removeDuplicateValues(){
+
+ }
+
+ /**
+ * 宸茬煡閾捐〃涓殑鍏冪礌浠ュ奸掑鏈夊簭鎺掑垪锛屽苟浠ュ崟閾捐〃浣滃瓨鍌ㄧ粨鏋勩
+ * 璇曞啓涓楂樻晥鐨勭畻娉曪紝鍒犻櫎琛ㄤ腑鎵鏈夊煎ぇ浜巑in涓斿皬浜巑ax鐨勫厓绱狅紙鑻ヨ〃涓瓨鍦ㄨ繖鏍风殑鍏冪礌锛
+ * @param min
+ * @param max
+ */
+ public void removeRange(int min, int max){
+
+ }
+
+ /**
+ * 鍋囪褰撳墠閾捐〃鍜屽弬鏁發ist鎸囧畾鐨勯摼琛ㄥ潎浠ュ厓绱犱緷鍊奸掑鏈夊簭鎺掑垪锛堝悓涓琛ㄤ腑鐨勫厓绱犲煎悇涓嶇浉鍚岋級
+ * 鐜拌姹傜敓鎴愭柊閾捐〃C锛屽叾鍏冪礌涓哄綋鍓嶉摼琛ㄥ拰list涓厓绱犵殑浜ら泦锛屼笖琛–涓殑鍏冪礌鏈変緷鍊奸掑鏈夊簭鎺掑垪
+ * @param list
+ */
+ public LinkedList intersection( LinkedList list){
+ return null;
+ }
+}
+
+
\ No newline at end of file
diff --git a/group22/1158477486/src/TestCollection/List.java b/group22/1158477486/src/TestCollection/List.java
new file mode 100644
index 0000000000..1b14c3ebe6
--- /dev/null
+++ b/group22/1158477486/src/TestCollection/List.java
@@ -0,0 +1,9 @@
+package TestCollection;
+
+public interface List {
+ public void add(Object o);
+ public void add(int index, Object o);
+ public Object get(int index);
+ public Object remove(int index);
+ public int size();
+}
diff --git a/group22/1158477486/src/TestCollection/Queue.java b/group22/1158477486/src/TestCollection/Queue.java
new file mode 100644
index 0000000000..4699235e98
--- /dev/null
+++ b/group22/1158477486/src/TestCollection/Queue.java
@@ -0,0 +1,38 @@
+package TestCollection;
+
+ ;
+
+public class Queue {
+ private LinkedList list=new LinkedList();
+
+ public void enQueue(Object o){
+ list.addLast ( o) ;//问题用add(index, o)出错
+ }
+
+ public Object deQueue(){
+ Object o=list.get(1);
+ list.remove(1);
+ return o;
+ }
+
+ public boolean isEmpty(){
+ if(list.size()!=0){
+ return false;}else
+ return true;
+ }
+
+ public int size(){
+ return list.size();
+ }
+ public static void main(String[] args) {
+ Queue q=new Queue();
+ q.enQueue("1");
+ q.enQueue("2");
+ q.enQueue("3");
+ System.out.println(q.size());
+ Object o=q.deQueue();
+ System.out.println(o);
+ System.out.println(q.size());
+
+ }
+}
diff --git a/group22/1158477486/src/TestCollection/Stack.java b/group22/1158477486/src/TestCollection/Stack.java
new file mode 100644
index 0000000000..35fdc6f31b
--- /dev/null
+++ b/group22/1158477486/src/TestCollection/Stack.java
@@ -0,0 +1,36 @@
+package TestCollection;
+
+public class Stack {
+ private ArrayList elementData = new ArrayList();
+
+ public void push(Object o){
+ elementData.add(o);
+ }
+
+ public Object pop(){
+ return elementData.get(elementData.size()-1) ;
+ }
+
+ public Object peek(){
+ elementData.remove(elementData.size()-1);
+ return elementData.get(elementData.size()-1);
+ }
+ public boolean isEmpty(){
+ if(elementData.size()!=0){
+ return false;}
+ return true;
+ }
+ public int size(){
+ return elementData.size();
+ }
+ public static void main(String[] args) {
+ Stack s=new Stack();
+ s.push("111");
+ s.push("211");
+ s.push("311");
+ System.out.println(s.size());//3
+ System.out.println(s.pop());
+ System.out.println(s.size());
+ System.out.println(s.peek());
+ System.out.println(s.size());
+ }}
diff --git a/group22/1258890344/src/com/coderising/array/ArrayUtil.java b/group22/1258890344/src/com/coderising/array/ArrayUtil.java
new file mode 100644
index 0000000000..773b66ffb7
--- /dev/null
+++ b/group22/1258890344/src/com/coderising/array/ArrayUtil.java
@@ -0,0 +1,209 @@
+package com.coderising.array;
+
+import java.util.Arrays;
+public class ArrayUtil {
+
+ /**
+ * 缁欏畾涓涓暣褰㈡暟缁刟 , 瀵硅鏁扮粍鐨勫艰繘琛岀疆鎹
+ 渚嬪锛 a = [7, 9 , 30, 3] , 缃崲鍚庝负 [3, 30, 9,7]
+ 濡傛灉 a = [7, 9, 30, 3, 4] , 缃崲鍚庝负 [4,3, 30 , 9,7]
+ * @param origin
+ * @return
+ */
+ public void reverseArray(int[] origin){
+ int length=origin.length;
+ int value=0;
+ for(int i=0;i<(length/2);i++){
+ value=origin[i];
+ origin[i]=origin[length-1-i];
+ origin[length-1-i]=value;
+
+ }
+ }
+
+ /**
+ * 鐜板湪鏈夊涓嬬殑涓涓暟缁勶細 int oldArr[]={1,3,4,5,0,0,6,6,0,5,4,7,6,7,0,5}
+ * 瑕佹眰灏嗕互涓婃暟缁勪腑鍊间负0鐨勯」鍘绘帀锛屽皢涓嶄负0鐨勫煎瓨鍏ヤ竴涓柊鐨勬暟缁勶紝鐢熸垚鐨勬柊鏁扮粍涓猴細
+ * {1,3,4,5,6,6,5,4,7,6,7,5}
+ * @param oldArray
+ * @return
+ */
+
+ public int[] removeZero(int[] oldArray){
+ int length=oldArray.length;
+ int[] newArray = new int[length];
+ int j=0;
+ for(int i=0;iarray2[j]){
+ for(int k=length1;k>i;k--){
+ array3[k]=array3[k-1];
+ }
+ array3[i]=array2[j];
+ j++;
+ if(j1){
+ array[0]=1;
+ array[1]=1;
+ for(int i=2;i>1;i++){
+ array[i]=array[i-1]+array[i-2];
+ if(array[i]>=max){
+ array[i]=0;
+ return array;
+ }
+ }
+ }
+ return array;
+
+
+ }
+
+ /**
+ * 杩斿洖灏忎簬缁欏畾鏈澶у糾ax鐨勬墍鏈夌礌鏁版暟缁
+ * 渚嬪max = 23, 杩斿洖鐨勬暟缁勪负[2,3,5,7,11,13,17,19]
+ * @param max
+ * @return
+ */
+ public int[] getPrimes(int max){
+
+ int[] array=new int[max];
+ int k=0;
+ if(max==2){
+ array[0]=2;
+ }
+ for(int i=3;i parameters) {
+
+ /*
+
+ 0. 璇诲彇閰嶇疆鏂囦欢struts.xml
+
+ 1. 鏍规嵁actionName鎵惧埌鐩稿搴旂殑class 锛 渚嬪LoginAction, 閫氳繃鍙嶅皠瀹炰緥鍖栵紙鍒涘缓瀵硅薄锛
+ 鎹畃arameters涓殑鏁版嵁锛岃皟鐢ㄥ璞$殑setter鏂规硶锛 渚嬪parameters涓殑鏁版嵁鏄
+ ("name"="test" , "password"="1234") ,
+ 閭e氨搴旇璋冪敤 setName鍜宻etPassword鏂规硶
+
+ 2. 閫氳繃鍙嶅皠璋冪敤瀵硅薄鐨別xectue 鏂规硶锛 骞惰幏寰楄繑鍥炲硷紝渚嬪"success"
+
+ 3. 閫氳繃鍙嶅皠鎵惧埌瀵硅薄鐨勬墍鏈塯etter鏂规硶锛堜緥濡 getMessage锛,
+ 閫氳繃鍙嶅皠鏉ヨ皟鐢紝 鎶婂煎拰灞炴у舰鎴愪竴涓狧ashMap , 渚嬪 {"message": "鐧诲綍鎴愬姛"} ,
+ 鏀惧埌View瀵硅薄鐨刾arameters
+
+ 4. 鏍规嵁struts.xml涓殑 閰嶇疆,浠ュ強execute鐨勮繑鍥炲硷紝 纭畾鍝竴涓猨sp锛
+ 鏀惧埌View瀵硅薄鐨刯sp瀛楁涓
+
+ */
+ View view=new View();
+ try {
+ SAXReader reader=new SAXReader();
+ Document doc=reader.read("./src/com/coderising/litestruts/struts.xml");
+ Element root=doc.getRootElement();
+ List list=root.elements();//灏嗘墍鏈夊厓绱犳斁鍒伴泦鍚堜腑
+ List