Скачать презентацию
Идет загрузка презентации. Пожалуйста, подождите
Презентация была опубликована 9 лет назад пользователемЛариса Базилевская
1 Java Java java ISS, Wuhan University Nov., 2009
2 Java Java java Java Java Java ……
3 Java Java 1
4 Java Java 1 Java.java Java
5 Java Java 1.1 Java Java HelloWorld HelloWorld.java Java main // The First Java Program public class HelloWorld { public static void main(String[] args){ System.out.println("Hello World "); } } HelloWorld main
6 Java Java 1.1 Java Java HelloWorld.java javac Yes javac HelloWorld.java HelloWorld.class java HelloWorld No Java.class Java
7 Java Java 1.2 Java Java Java abstractdefaultifprivatethrow booleandoimplementsprotectedthrows breakdoubleimportpublictransient byteelseinstanceofreturntry caseextendsintshortvoid catchfinalinterfacestaticvolatile charfinallylongsuperwhile classfloatnativeswitch constfornewsynchronized continuegotopackagethis
8 Java Java 1.3 // package import class public | protected | private protected | private public | protected | private protected | private static public | protected | private protected | private static final
9 Java Java 2 Java Java Java
10 Java Java 2.1 / bit,binary digit ASCII ASCII Unicode
11 Java Java 2.2 Java final final double PI = ; // PI int x, y; // x, y double w = ;// w boolean truth = true;// truth Constant const = new Constant();// const
12 Java Java 2.3 Java primitive type object type Java ADT Java API Java Java primitive float char object int long byte short double boolean
13 Java Java 2.3 Java Java String int length() String substring(int beginIndex, int endIndex) beginIndex endIndex int indexOf(int ch) 0 ch -1 int indexOf(String str) 0 str -1 boolean equals(Object anObject) true false equals 2 2 Srting name1 = new String(" ");// //name1 Srting name2 = " ";//name2 Srting name3 = " ";// name3 name1 = " ";//name1
14 Java Java 2.3 Java char byteshortintlong floatdouble ( ) double pi = ; int p = (int)pi; //p=3
15 Java Java 3 Java x{ } PI{ } System.out.println(" "+n);{ } x * y{ } x = 1.5{ } love2.equals(love1) { } int p = (int)PI;{ }
16 Java Java 3 = += -= *= /= %= JavaC/C++DelphiVisual Basic ++ Inc() -- Dec() JavaC/C++DelphiVisual Basic **** //// //div/ %Mod JavaC/C++DelphiVisual Basic == = = is != <> >>>> <<<< <= >= JavaC/C++DelphiVisual Basic && And || Or !!NotNo JavaC/C++DelphiVisual Basic &&and ~~not or ^^xor << Shl >> Shr
17 Java Java 3 Java [ ]. () ~ new () * / % + - > > == != & ^ | && || ?: A>B?X:Y = += -= *= /= %=
18 Java Java 4 Java ; int classNumber; boolean isFinished; String className = 2009 ; int a = 5; = ; classNumber = 100; isFinished = true; multi = classNumber * 100 / a ;
19 Java Java 4 Java ( ). ; System.out.println("Hello World ");
20 Java Java 5 Java if switch Java while do-while for
21 Java Java 5 switch switch switch ( ) { case 1: 1;// 1 break; case 2: 2;// 2 break;... case n: n;// n break; default: ; } if ( ) { // ;... }// {} else{ // 1;... }// {} if-else if
22 Java Java 5 while do-while for while ( ) { ;... } // {} do { ;... } while ( ); for ( ; ; ) { ;... } // {}
23 Java Java 5 break while do-while for break continue continue
24 Java Java 2 11 Calc.java public class Calc{ public static void main(String[] args) { int x; for (x=0;x<100;x++) { if ((x%3==2) && (x%5==3) && (x%7==2)) { System.out.println(" "+x); } }//end of main }//end of Calc
25 Java Java Hello World 10 Hello World 100/1000/10000 ? 5
26 Java Java …… 2009
Еще похожие презентации в нашем архиве:
© 2024 MyShared Inc.
All rights reserved.