Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java ÕÒ³ö4λÊýµÄËùÓÐÎüѪ¹íÊý×Ö

 /**
* ÕÒ³öËÄλÊýËùÓеÄÎüѪ¹íÊý×Ö
* ÎüѪ¹íÊý×Ö£ºÎ»ÊýΪżÊýµÄÊý×Ö¿ÉÒÔÓÉÒ»¶ÔÊý×ÖÏà³Ë¶øµÃ£¬Õâ¶ÔÊý×Ö°üº¬³Ë»ýÒ»°ëµÄλÊý
* È磺1260 = 21*60
*/
public class Vampire {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

String s="";
for(int i=1; i<10; i++){
for(int j=0; j<10; j++){
s += (10*i+j)+" ";
}
}
System.out.println(s);

String[] arr = s.split(" ");
System.out.println("Á½Î»ÊýµÄ¸öÊýΪ£º"+arr.length);

int a,b;
int count=0;
for(int j=0; j<arr.length; j++){
for(int k=0; k<arr.length; k++){
a = Integer.valueOf(arr[j]).intValue();
b = Integer.valueOf(arr[k]).intValue();
//ΪÄÜÒÔÁ½¸ö0½áβ
if(a*b<10000 && a*b>1000 && (a*b)%100!=0){
count++;
System.out.print(arr[j]+"_"+arr[k]+" ");
}
}
System.out.println();
}
System.out.println("the total number is "+count); //6370

}



Ïà¹ØÎĵµ£º

Java ½âѹrarÎļþµÄ¾­µäʵÀý

2009-11-11  18:06:09
/**
*
* @author Ice*
*/
public class RarUtil{
public static void main(String args[]) throws Exception {

String compress = "D:\\test.rar";// rarѹËõÎļþ
String decompression = "D:\\";// ½âѹ·¾¶
unZip(compress, decompression);

}
/** ......

java exception javaÒì³£»ã×Ü(1)

 java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception 730 - org.hibernate.LazyInitializationException:could not initialize proxy 731 - ¾¯¸æ: Error setting value 732 - override and commit 733 - Building workspace has encountered a problem. Errors during build 734 - Could not open the editor: An ......

Java Proxy¶¯Ì¬´úÀí

ÏÈ¿´¸öÀý×Ó£º
½Ó¿Ú
package example;
 
public interface Basic {
    public void hello();
}
 
½Ó¿ÚµÄʵÏÖÀà
package example;
 
public class BasicService implements Basic {
    public void hello() {
        Sysyt ......

Java Session and Cookie

Ò»¡¢cookie»úÖÆºÍsession»úÖÆµÄÇø±ð
*************************************************************************************
¾ßÌåÀ´Ëµcookie»úÖÆ²ÉÓõÄÊÇÔÚ¿Í»§¶Ë±£³Ö״̬µÄ·½°¸£¬¶øsession»úÖÆ²ÉÓõÄÊÇÔÚ·þÎñÆ÷¶Ë±£³Ö״̬µÄ·½°¸¡£
ͬʱÎÒÃÇÒ²¿´µ½£¬ÓÉÓڲŷþÎñÆ÷¶Ë±£³Ö״̬µÄ·½°¸ÔÚ¿Í»§¶ËÒ²ÐèÒª±£´æÒ»¸ö±êʶ£¬ËùÒÔses ......

¹ØÓÚ½«java³ÌÐò×ö³ÉexeÎļþµÄ¼¸ÖÖ×ö·¨£¨ZT£©

 ¿ÉÒÔ°ÑÆÕͨµÄJava³ÌÐò×ö³ÉÕæÕýµÄexe,Ò²¾ÍÊǵ¥Ò»¸öexe¾Í¿ÉÒÔÔÚûÓа²×°JVMµÄ»úÆ÷ÉÏÔËÐС£ÕâÑùµÄ¹¤¾ß³£¼ûµÄÓÐJETºÍgcj.ǰÕßÊÇÊշѵ쬶øÇÒ×ö³öÀ´µÄexe»¹ÊÇÐèÒªÒ»¶Ñdll¡£ÍƼöʹÓÃgcj.ËûÓÐwindowsºÍLinux°æ£¬Ö±½ÓÏÂÔØzip°ü£¬²»ÐèÒª°²×°£¬ÀïÃæÓв»ÉÙÀý×Ó£¬Ò»Ð©buildµÄÅú´¦ÀíÎļþ¡£´ÓÔ­ÀíÀ´Ëµgcj×Ô¼ºÊµÏÖÁËJVM¹æ·¶£¬Ò²¾ÍÊÇÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ