javaÃæÊÔÌ⣡¾ä×Ó°´ÕÕµ¥´Ê·´Öã¡
Óöµ½Ò»¸öjava±à³ÌÃæÊÔÌ⣬µ±Ê±Ã»ÓÐд³öÀ´£¬»ØÀ´×ÐϸÏëÁËÏ룬д³ö´ð°¸£¬Ò»¹²ÒÔºó²Î¿¼£¡
ÒªÇ󣺽«×Ö·û´®"I am a good student."ת»»³É"student. good a am I"
java´úÂëΪ£º
public class Application
{
private String s;
public void setS(String s)
{
s=s;
}
public String getS()
{
return s;
}
private static String sr(String s)
{
int l=s.length();
String space=" ";
String strnew="";
int i=0;
while(s.contains(space))
{
int spaceIndexS=s.lastIndexOf(space);
if(i==0)
{
strnew=strnew+s.substring(spaceIndexS+1);
}
else
{
strnew=strnew+s.substring(spaceIndexS);
}
s=s.substring(0,spaceIndexS);
i++;
}
strnew+=space+s;
return strnew;
}
public static void main(String[] args)
{
Application a=new Application("I am a good student.");
System.out.println(a.sr(a.getS));
}
}
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
ÔÚ¿ªÊ¼Õâ¸ö¼Æ»®Ç°£¬ÎÒÏ뻹ÊÇÏëºÍ´ó¼Ò·ÖÏíÒ»ÏÂÎÒ¶ÔδÀ´Java֮·µÄã¿ã½£¬ËäÈ»JavaµÄĸ¹«Ë¾SunÔÚ¾ÊÜ×ÅOracle¹«Ë¾ÊÕ¹º£¬µ¼ÖÂ×ÅÕû¸öJavaÕóÓªµÄÒ»ÕóÒìÒ飬µ«ÊÇ×îеÄJavaEE 1.6µÄ±ê×¼µÄÖƶ¨£¬»¹ÊÇ¿ÉÒÔ¿´³öJavaÏÖÔÚÈÔÈ»³äÂú×ÅÉúÃüÁ¦£¬ÖÁÉÙÔÚ×î½ü5Ä껹Êǻᱣ³ÖËûÇ¿´óµÄÉúÃüÁ¦¡£ ......
µÚ°ËÕÂ Òì³£
Òì³£
Á½Àà ´íÎóerror ϵͳÄÚ²¿´íÎó Î¥Àýexception ÆäËû±à³Ì´íÎó»òÍâÔÚÒòËØ¡¿
Òì³£´¦Àí»úÖÆ
Å׳öÒì³£throw µ±²»È·¶¨ÎªºÎÖÖÒì³£ºÍ²»È·¶¨Ôõô´¦ÀíµÄʱºòʹÓÃ
²¶»ñÒì³£catch
try{}
catch(){}
finally{}Ϊͳһ³ö¿Ú
fileinputstreamÀàµÄ³ÉÔ±·½·¨read()µÄ¹¦ÄÜÊÇÿ´Î´ÓÏàÓ¦µÄ(±¾µØΪasc2Âë)ÎļþÖжÁ³öÒ»¸ö×Ö½Ú ......
Java 2 ƽ̨ÒýÈëÁË java.lang.ref °ü£¬ÆäÖаüÀ¨µÄÀà¿ÉÒÔÈÃÄúÒýÓöÔÏ󣬶ø²»½«ËüÃÇÁôÔÚÄÚ´æÖС£ÕâЩÀ໹ÌṩÁËÓëÀ¬»øÊÕ¼¯Æ÷£¨garbage collector£©Ö®¼äÓÐÏ޵Ľ»»¥¡£Peter Haggar ÔÚ±¾ÎÄÖзÖÎöÁË SoftReference ¡¢ WeakReference ºÍ PhantomReference ÀàµÄ¹¦ÄܺÍÐÐΪ£¬²¢¾ÍÕâЩÀàµÄʹÓøø³öÁËһЩ±à³Ì·ç¸ñÉϵĽ¨Òé¡£
µ±ÔÚ Ja ......
javaÖеÄÀàÐÍת»»¡£
¶ÔÓÚ»ù±¾Êý¾ÝÀàÐÍ£¬µ±ÓÉ“ÕÀàÐ͔תΪ“¿íÀàÐ͔ʱ£¨ÀýÈ磺double d = 1;), ±àÒëÆ÷»á×Ô¶¯ÌáÉýintÐ͵½doubleÐÍ£¬ ¶ø¶ÔÓÚÓÉ“¿íÀàÐ͔תΪ“ÕÀàÐÍ”£¨ÀýÈ磺 int i = (int)1.0;£© ʱ£¬ÓÉÓÚת»»Ê±¿ÉÄÜÓÐÐÅÏ¢¶ªÊ§µÄÎ ......