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ѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
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ÈÕÆÚ¸ñʽ¿ØÖÆ
java.Text.SimpleDateFormat format = new java.Text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");//ÄãÏëÒªµÄ¸ñʽ
//×¢ÒâÔµÄλÖÃÒª´óдµÄMM Òª²»¾Í¿´µ½µÄ²»ÊÇÕýÈ·ÏÔʾ£¬¿ÉÒÔ°ÑÄãÏëҪת»»µÄÈÕÆÚת»»ÎªÏàÓ¦µÄ¸ñʽ°¡
format.format(new java.util.Date());//dateΪÈÕÆÚÐÍÊý¾Ý£¬¿ÉÒÔÈÎÒ ......
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\
  ......