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

javaʵÏÖÑ­»·×óÒƺÍÓÒÒƵļòµ¥Ëã·¨

 byte a=112,ÓóÌÐòʵÏÖ£¬½«ÆäÑ­»·×óÒÆÈýλºÍÓÒÒÆÈýλ¡£
112µÄ¶þ½øÖÆÔ­Âë:0111 0000
112Ñ­»·×óÒÆ3λºóµÄ¶þ½øÖÆÂë:1000 0011
112Ñ­»·ÓÒÒÆ3λºóµÄ¶þ½øÖÆÂë:0000 1110
ÏȽ«Ñ­»·×óÒƵijÌÐò´úÂë¸æËß´ó¼Ò:
public class TestCircle{
 public static void main(String args[]){
  byte x=112;
  System.out.println((byte)(x<<3|x>>5));
 }
}
³ÌÐòµÄÊä³ö½á¹ûÊÇ-125,ËüµÄÔ­ÂëΪ1111 1101,²¹ÂëΪ1000 0011(ÕýºÃÊÇ112Ñ­»·×óÒÆÈýλºóµÄÊý×Ö)
ÔÙ¿´Ñ­»·ÓÒÒƵijÌÐò´úÂë:
public class TestCircle{
 public static void main(String args[]){
  byte x=112;
  System.out.println((byte)(x>>3|x<<5));
 }
}
³ÌÐòµÄÊä³ö½á¹ûÊÇ14,ËûµÄÔ­Âë¡¢²¹ÂëÏàͬ¶¼ÊÇ0000 1110(ÕýºÃÊÇ112Ñ­»·ÓÒÒÆÈýλºóµÄÊý×Ö)
×ܽá:¶ÔÓÚÒ»¸öÊý¾ÝÀàÐͳ¤¶ÈΪLµÄÊý¾Ýn£¬¶ÔÆä½øÐÐÑ­»·×óÒÆmλ(»òÓÒÒÆmλ)£¬Ö»Ð轫Êý¾Ýn×óÒÆ(»òÓÒÒÆ)mλµÄ½á¹ûºÍÊý¾ÝnÓÒÒÆ(»ò×óÒÆ)L-mλµÄ½á¹û½øÐлòÔËË㣬ÔÙ½«»òÔËËãµÄ½á¹ûÇ¿ÖÆת»»ÎªÔ­ÀàÐͼ´¿É¡£


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

javaͼƬ´¦Àí ÎÄ×Öˮӡ ͼƬˮӡ Ëõ·Å ²¹°×

 import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOExc ......

java date

//¼òµ¥µÄjavaÈÕÆÚ¸ñʽ¿ØÖÆ
 java.Text.SimpleDateFormat format = new java.Text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//ÄãÏëÒªµÄ¸ñʽ
//×¢ÒâÔµÄλÖÃÒª´óдµÄMM  Òª²»¾Í¿´µ½µÄ²»ÊÇÕýÈ·ÏÔʾ£¬¿ÉÒÔ°ÑÄãÏëҪת»»µÄÈÕÆÚת»»ÎªÏàÓ¦µÄ¸ñʽ°¡
format.format(new java.util.Date());//dateΪÈÕÆÚÐÍÊý¾Ý£¬¿ÉÒÔÈÎÒ ......

¹ØÓÚc#ºÍjavaÖÐÊý×éµÄ±È½Ï

 javaÖÐʹÓöþά Êý×é
ognNf_v
public class Array2D...{
m @EvM)y0e2r
s
    public static void main(String[] args)...{JAVAÖÐÎÄÕ¾ÉçÇøÃÅ»§ ~j!lSR ^ z5bR5O
        int myInt[][]=new int[5][10];
@XH3ao\
        ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ