下载
加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 《跟我学java26日通》第5天 java基础(笔记)

《跟我学java26日通》第5天 java基础(笔记).pdf

《跟我学java26日通》第5天 java基础(笔记)

lolin
2013-04-06 0人阅读 举报 0 0 暂无简介

简介:本文档为《《跟我学java26日通》第5天 java基础(笔记)pdf》,可适用于IT/计算机领域

http:BBSMLDNCNJavaSEjavajavajavaJavajavajavajavajavaioJDBCjavahttp:BBSMLDNCNOracleOracleSQLJavaJDKjavajavajavaCCjavaOraclejavahttp:BBSMLDNCNJavaSUNJavaSUNwwwsuncomSUNSUNJavaJavaOakGREENemailSUNCCSUNCOakOakSUNHOTJavaOakAppletOakJavaJDKjavaJDKJavaJavaJDKhttp:BBSMLDNCNJDKwindowsjavawindowsjavaJFCJFCjavanetJ#VBjavajavaSUNwindowsxpjavawindowsSUNJ#netJ#C#JavaC#netASPNETC#AdobeFlexnetoracleSUNoraclejavajavaJavaMEhttp:BBSMLDNCNJAVAMEJAVASEJAVASEJavawindowslinuxjavawindowslinuxunixjavaCjavajavaJavajavarmijavasmalltalkIBMjavahttp:BBSMLDNCNJavajavajavaJVMJVMjavajavaJVMJVMJVMàJVMàhttp:BBSMLDNCNJVMnetJavajavaJDKJDKJDKJAVASEjavaJDKJDKbugwwwsuncomJDKJDKjdkuwindowsipexewindowswindowsJDKhttp:BBSMLDNCNJDKàdjavahttp:BBSMLDNCNJREjavajavajavacjavaJDKwindowsJDKjavaD:JavajdkbinààààpathbinJavaHelloWorldHelloWorldhttp:BBSMLDNCN*javaHellojavaHelloWorldHellojavapublicclassHello{publicstaticvoidmain(Stringargs){Systemoutprintln("HelloWorld!!!")}}javacHellojavaHellojavaHelloclassjavaHelloHelloclassHelloclassHelloclassJDKjavaversionjavajdkjdkhttp:BBSMLDNCNjdkOracleOracleOracleJDKpathD:oracleproductdbbinD:oracleproductdbjrebinclientD:oracleproductdbjrebinSystemRootsystemSystemRootSystemRootSystemWbemC:ProgramFilesATITechnologiesATIACECoreStaticD:JavajdkbinPATHOracleJDKJDKOracleJDKJDKjavapublicclassHello{àjavapublicclassHellopublicstaticvoidmain(Stringargs){àSystemoutprintln("HelloWorld!!!")}}Systemoutprintln()lnlnjavapublicclassHello{publicstaticvoidmain(Stringargs){Systemoutprintln("HelloWorld!!!")Systemoutprint("HelloWorld!!!")Systemoutprint("HelloWorld!!!")}}http:BBSMLDNCNCLASSPATHJavaPATHjavaCLASSPATH*classCLASSPATHCLASSPATHSETCLASSPATH=classpathD:testjavabasicsetclasspath=D:testjavabasicHelloclassjavaclasspathjavaàclasspathàclasspathclasspathclassjava*classclasspathSETCLASSPATH=classjavapublicclass|javapublicclassclassclass|*classclassclassclass*class*java*classTestJavaHellohttp:BBSMLDNCNJavaJava*****javapublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Systemoutprintln(xy)}}java$http:BBSMLDNCNjavajavahttp:BBSMLDNCNbyteshortintlongfloatdoubleintbyte<short<int<longhttp:BBSMLDNCNintintpublicclassTestDemo{publicstaticvoidmain(Stringargs){byteb=}}intbyteàintintàbytepublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=byteb=(byte)xhttp:BBSMLDNCN}}floatdoubledoubledoublepublicclassTestDemo{publicstaticvoidmain(Stringargs){doublex=Systemoutprintln(x)}}floatpublicclassTestDemo{publicstaticvoidmain(Stringargs){floatx=(float)Systemoutprintln(x)}}publicclassTestDemo{publicstaticvoidmain(Stringargs){floatx=fSystemoutprintln(x)}}LpublicclassTestDemo{publicstaticvoidmain(Stringargs){longx=LSystemoutprintln(x)}}Systemoutprintln(l)http:BBSMLDNCN'publicclassTestDemo{publicstaticvoidmain(Stringargs){charc='A''Systemoutprintln(c)}}intpublicclassTestDemo{publicstaticvoidmain(Stringargs){charc='A''intx=cSystemoutprintln(x)}}AjavaunicodeUnicodeASCIIpublicclassTestDemo{publicstaticvoidmain(Stringargs){charc='A''intx=cxxchary=(char)xSystemoutprintln(y)}}"'ntpublicclassTestDemo{publicstaticvoidmain(Stringargs){Systemoutprintln(""hellonwtorld"")}}http:BBSMLDNCN=javaUNICODEUNICODEjavapublicclassTestDemo{publicstaticvoidmain(Stringargs){charc=''intx=ccSystemoutprintln(c)Systemoutprintln(x)}}booleantruefalseCCfalsetruejavapublicclassTestDemo{publicstaticvoidmain(Stringargs){booleanflag=trueSystemoutprintln(flag)}}ifpublicclassTestDemo{publicstaticvoidmain(Stringargs){booleanflag=trueif(flag){flag==trueSystemoutprintln("")}}}http:BBSMLDNCNStringStringpublicclassTestDemo{publicstaticvoidmain(Stringargs){Stringstr=""Systemoutprintln(str)}}StringbyteàshortàintàlongàfloatàdoubleStringStringpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=floaty=fSystemoutprintln(yx)}}StringpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Stringstr="x""""y""="Systemoutprintln(strxy)}}()publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=http:BBSMLDNCNStringstr="x""""y""="Systemoutprintln(str(xy))}}''booleanfalsepublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(x)}http:BBSMLDNCN}Javajava*java=javapublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Systemoutprintln(x""y"="(xy))Systemoutprintln(x""y"="(xy))Systemoutprintln(x"*"y"="(x*y))Systemoutprintln(x""y"="(xy))Systemoutprintln(x""y"="(xy))}}publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(x)Systemoutprintln(x)}http:BBSMLDNCN}publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(x)Systemoutprintln(x)}}<=>=!=><booleanpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Systemoutprintln(x>y)}}java||||||||||publicclassTestDemo{publicstaticvoidmain(Stringargs){Systemoutprintln()}http:BBSMLDNCN}publicclassTestDemo{publicstaticvoidmain(Stringargs){if(====){Systemoutprintln("")}}}publicclassTestDemo{publicstaticvoidmain(Stringargs){if(====){Systemoutprintln("")}}}publicclassTestDemo{publicstaticvoidmain(Stringargs){if(==|==){Systemoutprintln("")}}}publicclassTestDemo{publicstaticvoidmain(Stringargs){if(==||==){Systemoutprintln("")}}}http:BBSMLDNCN|>><<>>>publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Systemoutprintln(x|y)}}àà|àpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=Systemoutprintln(xy)}}àààpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(<<)}}à<<àhttp:BBSMLDNCNpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(>>)}}à>>àpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(>>>)}}=publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=Systemoutprintln(<<)}}à<<ààhttp:BBSMLDNCNififelseifelseifelseifelseswitchswitchbooleanifpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=if(x==){Systemoutprintln("")}if(true){Systemoutprintln("")}}}ifelseifelsepublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=if(x==){Systemoutprintln("")}else{Systemoutprintln("")}}}ifelseifelseifelsepublicclassTestDemo{http:BBSMLDNCNpublicstaticvoidmain(Stringargs){intx=if(x==){Systemoutprintln("")}elseif(x<){Systemoutprintln("")}else{Systemoutprintln("")}}}elseif~~~publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=if(x<){Systemoutprintln("")}elseif(x>=x<){Systemoutprintln("")}elseif(x>=x<){Systemoutprintln("")}else{Systemoutprintln("")}}}ifelseifjavaswitchpublicclassTestDemo{publicstaticvoidmain(Stringargs){intch=switch(ch){http:BBSMLDNCNcase:{Systemoutprintln("")break}case:{Systemoutprintln("")break}case:{Systemoutprintln("")break}default:{Systemoutprintln("")}}}}switchJDKswitchjavawhiledowhilefor~whilepublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=intsum=while(x<=){xsum=xx}Systemoutprintln(sum)http:BBSMLDNCN}}whiledowhilepublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=intsum=do{xsum=xx}while(x<=)Systemoutprintln(sum)}}whiledowhileforforpublicclassTestDemo{publicstaticvoidmain(Stringargs){intsum=for(intx=x<=x){sum=x}Systemoutprintln(sum)}}breakcontinuebreakbreakpublicclassTestDemo{publicstaticvoidmain(Stringargs){for(intx=x<x){http:BBSMLDNCNif(x==){break}Systemoutprintln("x="x)}}}xcontinuecontinuepublicclassTestDemo{publicstaticvoidmain(Stringargs){for(intx=x<x){if(x==){continue}Systemoutprintln("x="x)}}}*publicclassTestDemo{publicstaticvoidmain(Stringargs){for(intx=x<x){for(inty=y<=xy){Systemoutprint(x"*"y"="x*y"t")}Systemoutprintln()}}}publicclassTestDemo{publicstaticvoidmain(Stringargs){http:BBSMLDNCNfor(intx=x<=x){if(x==x==x==){Systemoutprintln(x"t")}}}}***************publicclassTestDemo{publicstaticvoidmain(Stringargs){intline=for(intx=x<linex){for(inty=y<linexy){Systemoutprint("")}for(inty=y<=xy){Systemoutprint("*")}Systemoutprintln()}}}ifpublicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=intz=intmax=xif(max<y){max=yyxmaxy}http:BBSMLDNCNif(max<z){max=zzmaxmaxz}Systemoutprintln(max)}}publicclassTestDemo{publicstaticvoidmain(Stringargs){intx=inty=intz=intmax=x<yy:xmax=max<zz:maxSystemoutprintln(max)}}Javaiiijava=new=newpublicclassArrayDemo{publicstaticvoidmain(Stringargs){inttemp=newinthttp:BBSMLDNCN}}~publicclassArrayDemo{publicstaticvoidmain(Stringargs){inttemp=newintSystemoutprintln(""temp)Systemoutprintln(""temp)}}ArrayIndexOutOfBoundsExceptionlengthpublicclassArrayDemo{publicstaticvoidmain(Stringargs){inttemp=newintSystemoutprintln(""templength)for(intx=x<templengthx){Systemoutprintln("temp"x"="tempx)}}}newnewhttp:BBSMLDNCN==newnewpublicclassArrayDemo{publicstaticvoidmain(Stringargs){inttemp=temp=newintSystemoutprintln(""templength)for(intx=x<templengthx){Systemoutprintln("temp"x"="tempx)}}}publicclassArrayDemo{publicstaticvoidmain(Stringargs){intx=x=newintfor(inti=i<xlengthi){xi=i*}http:BBSMLDNCNfor(inti=i<xlengthi){Systemoutprintln("x"i"="xi)}}}javapublicclassArrayDemo{publicstaticvoidmain(Stringargs){http:BBSMLDNCNintx=x=newintfor(inti=i<xlengthi){xi=i*}inty=xxyfor(inti=i<xlengthi){Systemoutprintln("x"i"="xi)}}}ypublicclassArrayDemo{publicstaticvoidmain(Stringargs){intx=x=newintfor(inti=i<xlengthi){xi=i*}inty=xxyy=for(inti=i<xlengthi){Systemoutprintln("x"i"="xi)}}}http:BBSMLDNCNxxxyjavapublicclassArrayDemo{publicstaticvoidmain(Stringargs){intx=newintfor(inti=i<xlengthi){for(intj=j<xilengthj){Systemoutprintln("x"i""j"="xij)}}}}={,,,}publicclassArrayDemo{publicstaticvoidmain(Stringargs){intx={,,,,,,}for(inti=i<xlengthi){http:BBSMLDNCNSystemoutprintln("x"i"="xi)}}}javapublicstatic(){return}javavoidpublicclassMethodDemo{publicstaticvoidmain(Stringargs){printMsg()printMsg()printMsg()}publicstaticvoidprintMsg(){Systemoutprintln("helloworld!!!")}}returnpublicclassMethodDemo{publicstaticvoidmain(Stringargs){intx=add(,)Systemoutprintln(x)http:BBSMLDNCNSystemoutprintln(add(,))}publicstaticintadd(inti,intj){inttemp=temp=ijreturntemp}}add()returnjavavoidreturnpublicclassMethodDemo{publicstaticvoidmain(Stringargs){fun()fun()}publicstaticvoidfun(inti){if(i==){return}Systemoutprintln("helloworld!!!")}}add()publicclassMethodDemo{publicstaticvoidmain(Stringargs){Systemoutprintln(add(,))Systemoutprintln(add(,,))Systemoutprintln(add(f,f))}publicstaticintadd(inti,intj){inttemp=http:BBSMLDNCNtemp=ijreturntemp}publicstaticintadd(inti,intj,intk){inttemp=temp=ijkreturntemp}publicstaticfloatadd(floati,floatj){floattemp=temp=ijreturntemp}}add()publicclassMethodDemo{publicstaticvoidmain(Stringargs){Systemoutprintln(add(,))Systemoutprintln(add(,,))Systemoutprintln(add(f,f))}publicstaticintadd(inti,intj){inttemp=temp=ijreturntemp}publicstaticintadd(inti,intj,intk){inttemp=temp=ijkreturntemp}publicstaticfloatadd(floati,floatj){floattemp=temp=ijreturntemp}}http:BBSMLDNCNpublicclassMethodDemo{publicstaticvoidmain(Stringargs){Systemoutprintln()Systemoutprintln(f)Systemoutprintln('a')}}Systemoutprintln()publicclassMethodDemo{publicstaticvoidmain(Stringargs){Systemoutprintln(add(,))Systemoutprintln(add(,))}publicstaticintadd(inti,intj){inttemp=temp=ijreturntemp}publicstaticfloatadd(inti,intj){floattemp=temp=ijreturntemp}}publicclassMethodDemo{publicstaticvoidmain(Stringargs){intsum=for(inti=i<=i){sum=ihttp:BBSMLDNCN}Systemoutprintln(sum)}}publicclassMethodDemo{publicstaticvoidmain(Stringargs){Systemoutprintln(add())}publicstaticintadd(intx){if(x>){returnxadd(x)}else{return}}}publicclassMethodDemo{publicstaticvoidmain(Stringargs){intx={,,,,,}print(x)}publicstaticvoidprint(inttemp){for(inti=i<templengthi){Systemoutprintln("temp"i"="tempi)}}}print()print()http:BBSMLDNCNxtemptempxpublicclassMethodDemo{publicstaticvoidmain(Stringargs){intx=init()print(x)}publicstaticvoidprint(inttemp){for(inti=i<templengthi){Systemoutprintln("temp"i"="tempi)}}publicstaticintinit(){inty={,,,,,}returny}}floatfloatjavapublicclassMethodDemo{publicstaticvoidmain(Stringargs){intx={,,,,,,,,,}javautilArrayssort(x)print(x)http:BBSMLDNCN}publicstaticvoidprint(inttemp){for(inti=i<templengthi){Systemoutprintln("temp"i"="tempi)}}}javapublicclassMethodDemo{publicstaticvoidmain(Stringargs){intx={,,,,,,,,}inty={,,,,,,,,}Systemarraycopy(x,,y,,)print(y)}publicstaticvoidprint(inttemp){for(inti=i<templengthi){Systemoutprintln("temp"i"="tempi)}}}Systemarraycopy(x,,y,,)Systemarraycopy()JavaJAVASEJAVAEEjavaJAVAMEjavajavahttp:BBSMLDNCNjavac*classjavaJVMjavaJVMJVMjavajavapathJDKclasspath|SETCLASSPATH=publicclassclasspublicclassclassclassjavabyteshortintlongfloatdoublebooleancharjava==newjavajavautilArrayssort()Systemarraycopy()!!!http:BBSMLDNCNintoldArr={,,,,,,,,,,,,,,,}intnewArr={,

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

文档小程序码

使用微信“扫一扫”扫码寻找文档

1

打开微信

2

扫描小程序码

3

发布寻找信息

4

等待寻找结果

我知道了
评分:

/47

《跟我学java26日通》第5天 java基础(笔记)

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利