Skip to content

Commit aba6c66

Browse files
committed
commit
commit
1 parent 7d728b5 commit aba6c66

File tree

455 files changed

+8198
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

455 files changed

+8198
-96
lines changed

.metadata/.log

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,3 +662,53 @@ This warning can be switched off on the Team > Git > Confirmations and Warnings
662662

663663
!ENTRY org.eclipse.ui 2 2 2017-11-11 09:38:11.873
664664
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
665+
!SESSION 2017-11-12 09:07:10.742 -----------------------------------------------
666+
eclipse.buildId=M20130204-1200
667+
java.version=1.8.0_66
668+
java.vendor=Oracle Corporation
669+
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
670+
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
671+
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
672+
673+
!ENTRY org.eclipse.egit.ui 2 0 2017-11-12 09:07:57.351
674+
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
675+
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
676+
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
677+
this system level configuration. The Git installation location can be configured on the
678+
Team > Git > Configuration preference page's 'System Settings' tab.
679+
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
680+
681+
!ENTRY org.eclipse.egit.ui 2 0 2017-11-12 09:07:57.383
682+
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
683+
user global configuration and to define the default location to store repositories: 'C:\Users\admin'. If this is
684+
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
685+
EGit might behave differently since they see different configuration options.
686+
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
687+
688+
!ENTRY org.eclipse.ui 2 2 2017-11-12 09:14:34.848
689+
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)
690+
!SESSION 2017-11-13 17:38:48.636 -----------------------------------------------
691+
eclipse.buildId=M20130204-1200
692+
java.version=1.8.0_66
693+
java.vendor=Oracle Corporation
694+
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
695+
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
696+
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct
697+
698+
!ENTRY org.eclipse.egit.ui 2 0 2017-11-13 17:40:32.752
699+
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
700+
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
701+
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
702+
this system level configuration. The Git installation location can be configured on the
703+
Team > Git > Configuration preference page's 'System Settings' tab.
704+
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
705+
706+
!ENTRY org.eclipse.egit.ui 2 0 2017-11-13 17:40:32.815
707+
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
708+
user global configuration and to define the default location to store repositories: 'C:\Users\admin'. If this is
709+
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
710+
EGit might behave differently since they see different configuration options.
711+
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
712+
713+
!ENTRY org.eclipse.ui 2 2 2017-11-13 18:30:23.077
714+
!MESSAGE Invalid property category path: ValidationPropertiesPage (bundle: org.eclipse.wst.xml.ui, propertyPage: org.eclipse.wst.xml.ui.propertyPage.project.validation)

.metadata/.plugins/org.eclipse.cdt.core/.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*** SESSION 11月 09, 2017 09:35:46.55 -------------------------------------------
33
*** SESSION 11月 10, 2017 09:13:05.73 -------------------------------------------
44
*** SESSION 11月 11, 2017 09:13:20.12 -------------------------------------------
5+
*** SESSION 11月 12, 2017 09:07:57.98 -------------------------------------------
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package chapter07;
2+
3+
public class Insect {
4+
5+
private int i=9;
6+
protected int j;
7+
Insect() {
8+
System.out.println("i"+i+",j"+j); //���j��0���ò��������j=39��Ĭ����0
9+
j=39;
10+
}
11+
private static int x1=printInit("static insect.x1 initialized");
12+
static int printInit(String string) {
13+
// TODO Auto-generated method stub
14+
System.out.println(string);
15+
return 47;
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package chapter10.eitht.two;
2+
3+
/**
4+
* ����Ĭ�ϵ���Ϊ�ǻ���ʱ��ȥ���Ƶ� ��ʹ�ó��������ӿڣ�����Ҫ���Ƶ��¼���
5+
* @author admin
6+
*
7+
*/
8+
public abstract class Event {
9+
private long eventTime;
10+
protected final long delayTime;
11+
public Event(long delayTime) {
12+
eventTime=delayTime;
13+
start();
14+
}
15+
private void start() {
16+
// TODO Auto-generated method stub
17+
eventTime=System.nanoTime();
18+
}
19+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package chapter07;
2+
3+
public class Beetle extends Insect{
4+
5+
private int k=printInit("Beetle.k initialized");
6+
public Beetle() {
7+
// TODO Auto-generated constructor stub
8+
System.out.println("k"+k);
9+
System.out.println("j"+j);
10+
}
11+
static{
12+
System.out.println("Beetle static coding area");
13+
}
14+
private static int x2=printInit("static Beetle.x2 initialized");
15+
public static void main(String[] args) {
16+
System.out.println("Beetle constructor");
17+
Beetle b=new Beetle();
18+
}
19+
{
20+
System.out.println("Beetle constructor coding area");
21+
}
22+
/**
23+
ִ�н��
24+
��̬���������ݸ����ڳ�����λ�õ��Ⱥ����
25+
static insect.x1 initialized ����ľ�̬���ݺ;�̬����
26+
Insect static coding area ����� ��̬�����
27+
Beetle static coding area ����ľ�̬�����
28+
static Beetle.x2 initialized ����ľ�̬���ݺ;�̬����
29+
Beetle constructor
30+
Insert constructor coding area
31+
i9,j0
32+
Beetle.k initialized
33+
Beetle constructor coding area
34+
k47
35+
j39
36+
37+
38+
*/
39+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package chapter10;
2+
3+
public class Sequence {
4+
5+
private Object[] items;
6+
private int next=0;
7+
public Sequence(int size) {
8+
items=new Object[size];
9+
}
10+
public void add(Object x){
11+
if(next<items.length){
12+
items[next++]=x;
13+
}
14+
}
15+
private class SequenceSelector implements Selector{
16+
17+
private int i=0;
18+
public boolean end() {
19+
return i==items.length;
20+
}
21+
22+
public Object current() {
23+
return items[i];
24+
}
25+
26+
public void next() {
27+
if(i<items.length)
28+
i++;
29+
}
30+
}
31+
public Selector selector(){
32+
return new SequenceSelector();
33+
}
34+
public static void main(String[] args) {
35+
Sequence sequence=new Sequence(10);
36+
}
37+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package chapter09;
2+
3+
public interface Service {
4+
5+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package test;
2+
3+
import java.util.ArrayList;
4+
import java.util.List;
5+
6+
public class TestArrayList {
7+
8+
static List<Integer> list=new ArrayList();
9+
public static void main(String[] args) {
10+
for (int i = 0; i < 10; i++) {
11+
list.add(Integer.valueOf(i));
12+
}
13+
for (int j = 0; j < args.length; j++) {
14+
System.out.println(list.indexOf(Integer.valueOf(j)));
15+
list.remove(j);
16+
}
17+
18+
}
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package chapter10.eight;
2+
3+
public class Callee2 extends MyIncrement{
4+
5+
private int i=0;
6+
public void increment() {
7+
super.increment();
8+
i++;
9+
System.out.println(i);
10+
}
11+
private class Closure implements Incrementable{
12+
13+
public void increment() {
14+
// TODO Auto-generated method stub
15+
Callee2.this.increment();
16+
}
17+
}
18+
Incrementable getCallbackReference(){
19+
return new Closure();
20+
}
21+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package chapter10.eitht.two;
2+
3+
import chapter10.eitht.two.GreenhouseControls.Terminate;
4+
5+
public class GreenhouseController {
6+
7+
public static void main(String[] args) {
8+
GreenhouseControls gc=new GreenhouseControls();
9+
gc.addEvent(gc.new Bell(900));//ͨ��gc�����ڲ������
10+
Event[] eventList={
11+
gc.new ThermostatNight(0),
12+
gc.new LightOn(200),
13+
gc.new lightOff(400),
14+
gc.new WaterOn(600),
15+
gc.new WaterOff(800),
16+
gc.new ThermostatDay(1400)};
17+
gc.addEvent(gc.new Restart(2000, eventList));
18+
gc.run();
19+
if(args.length==1){
20+
gc.addEvent(new GreenhouseControls.Terminate(new Integer(args[0])));
21+
gc.run();
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)