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

JavaÖÐFile,byte[],Object¼äµÄת»»

Ò»¡¢ÓÐÁ½µãÐèҪעÒ⣺
    1¡¢Object ¶ÔÏó±ØÐëÊÇ¿ÉÐòÁл¯¶ÔÏó ¡£
    2¡¢¿ÉÐòÁл¯µÄ Object
¶ÔÏ󶼿ÉÒÔת»»ÎªÒ»¸ö´ÅÅÌÎļþ£»·´¹ýÀ´Ôò²»Ò»¶¨³ÉÁ¢£¬Ö»ÓÐÐòÁÐ
         »¯Îļþ²Å¿ÉÒÔת»»Îª Object ¶ÔÏó¡£
¶þ¡¢Ïà¹ØµÄת»»·½·¨£º
      
import
 java.io.BufferedOutputStream;
import
 java.io.ByteArrayInputStream;
import
 java.io.ByteArrayOutputStream;
import
 java.io.File;
import
 java.io.FileInputStream;
import
 java.io.FileOutputStream;
import
 java.io.IOException;
import
 java.io.ObjectInputStream;
import
 java.io.ObjectOutputStream;
import
 java.io.Serializable;
public
 
class
 Byte_File_Object 
...
{
    
/** */
/**
     * Îļþת»¯Îª×Ö½ÚÊý×é
     * @Author Sean.guo
     * @EditTime 2007-8-13 ÉÏÎç11:45:28
     
*/
    
public
 
static
 
byte
[] getBytesfromFile(File f) 
...
{
        
if
 (f 
==
 
null

...
{
            
return
 
null
;
        }
        
try
 
...
{
            FileInputStream stream 
=
 
new
 FileInputStream(f);
            ByteArrayOutputStream out 
=
 
new
 ByteArrayOutputStream(
1000
);
            
byte
[] b 
=
 
new
 
byte
[
1000
];
     


Ïà¹ØÎĵµ£º

Java´úÂëµ÷ÓÃJavaFXµÄÀý×Ó


1. ÓÃScriptEngineManagerÀà¡£ÕâÊÇ»ùÓÚJSR-223¹æ·¶µÄjava½Å±¾API( scripting API)¡£¿ÉÒÔÔÚjava³ÌÐòÖÐÔËÐÐһЩ½Å±¾£¬Èç JavaFX script, javascriptµÈ¡£
¡¡¡¡2. ͨ¹ýJavaFX reflection API¡£ÕâÊÇJavaFXÌṩµÄ·´ÉäAPI£¬¼¸ºõ¿ÉÒÔµ÷ÓÃËùÓеÄJavaFXÀà¡£
¡¡¡¡3. ÏÈÓÃJavaFXÀàʵÏÖÒ»¸öJavaµÄinterface£¬È»ºóJava³ÌÐò¿ÉÒÔͨ¹ýÕ⸠......

JavaÖÐÎÞ·¨²¶»ñC³ÌÐòprintfÊä³öµÄÎÊÌâ

ÔÚ²âÊÔ
ConsoleRunner
µÄ¹ý³ÌÖз¢ÏÖÒ»¸öÓÐÒâ˼µÄÏÖÏó£¬Ò»¶ÎºÜ¼òµ¥µÄ
C
³ÌÐò£º
 
#include <stdio.h>
#include <windows.h>
 
int main() {
   
int i = 0;
   
for (;;) {
       
printf("%d\n", i++); ......

Java¶ÑµÄ¹ÜÀí À¬»ø»ØÊÕ


×÷ÕߣºÁõѧ³¬
×÷Õß¼ò½é
Áõѧ³¬£¬»ªÖÐʦ·¶´óѧ¼ÆËã»ú¿ÆÑ§ÏµÍøÂçÓëͨѶÑо¿Ëù£¬Äã¿ÉÒÔͨ¹ýshuechao_lau@hotmail.comÓëËûÁªÏµ¡£
1  ÒýÑÔ
JavaµÄ¶ÑÊÇÒ»¸öÔËÐÐʱÊý¾ÝÇø,ÀàµÄʵÀý(¶ÔÏó)´ÓÖзÖÅä¿Õ¼ä¡£JavaÐéÄâ»ú(JVM)µÄ¶ÑÖд¢´æ×ÅÕýÔÚÔËÐеÄÓ¦ÓóÌÐòËù½¨Á¢µÄËùÓжÔÏó£¬ÕâЩ¶ÔÏóͨ¹ýnew¡¢newarray¡¢anewarrayºÍmultiane ......

JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ

JavaʼþÄ£ÐÍÓëAndroidʼþÄ£Ð͵ıȽÏ
±È½Ï½á¹û£ºAndroid½è¼øÁËJava2ÖеÄUIʼþ´¦Àí»úÖÆ£¬µ«ÊÇ£¬AndroidÓÖÌṩÁËÁíÒ»ÖÖʼþ處ÀíÆ÷£¨event handler£©£¬¶øÕâ¸ö·½Ê½ÊÇ·ñÓëjava1.0ʼþÄ£ÐÍÒ»ÑùÄØ£¬ÓдýÇóÖ¤¡£
JavaʼþÄ£ÐÍ£º
ÎÒÃǰÑJDK1.0ʼþ´¦ÀíÄ£ÐͳÉΪJava1.0ʼþÄ£ÐÍ£¬¶ø´Ójdk1.1ºóµÄ°æ±¾Ê¼þ´¦ÀíÄ£ÐͳÆÎªJava 2Ê ......

javaµÄÓÅÊÆ

    1¡¢JavaÓïÑÔÊǼòµ¥µÄ¡£JavaÓïÑÔµÄÓï·¨ÓëCÓïÑÔºÍC++ÓïÑԺܽӽü£¬Ê¹µÃ´ó¶àÊý³ÌÐòÔ±ºÜÈÝÒ×ѧϰºÍʹÓÃJava¡£ÁíÒ»·½Ã棬Java¶ªÆúÁËC++ ÖкÜÉÙʹÓõġ¢ºÜÄÑÀí½âµÄ¡¢ÁîÈËÃÔ»óµÄÄÇÐ©ÌØÐÔ£¬Èç²Ù×÷·ûÖØÔØ¡¢¶à¼Ì³Ð¡¢×Ô¶¯µÄÇ¿ÖÆÀàÐÍת»»¡£ÌØ±ðµØ£¬JavaÓïÑÔ²»Ê¹ÓÃÖ¸Õ룬²¢ÌṩÁË×Ô¶¯µÄ·ÏÁÏÊÕ¼¯£¬Ê¹µÃ³ÌÐòÔ±²»±ØÎªÄÚ´æ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ