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

JAVAͼÐλù´¡


1.×î¼òµ¥µÄͼÐΣ¬Ò»¸öÏûÏ¢¿ò
import javax.swing.JOptionPane;
//±íÃ÷³ÌÐòʹÓÃjavax.swing°üµÄJOptionPaneÀà
public class Dialog1{

public static void main(String[] args) {
// TODO Auto-generated method stub
       //Ͼä±íÃ÷³ÌÐòʹÓÃJOptionPaneÀàµÄshowMessageDialog·½·¨1`
JOptionPane.showMessageDialog(null,"welcome to java");
 }
 
 }
2.ÈÔÈ»ÊǼòµ¥µÄÏûÏ¢¿ò£¬ÊäÈëÃû×ÖºóÏÔʾ»¶Ó­ÏûÏ¢
import javax.swing.JOptionPane;
public class NameDialog{
/**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub
String name=
JOptionPane.showInputDialog("what is your name? ");
String message=
String.format("welcome,%s,to java programming! ",name);
JOptionPane.showMessageDialog(null,message);
 }
 
 }
3.ÒÔÉÏÁ½¸öÀý×ÓµÄÔËÓã¬Á½¸öÕûÊýºÍµÄÊä³ö£¬×¢ÒâInteger.parseInt()ÓÃÓÚ½«×Ö·û´®×ª»¯ÎªÕûÊý
import javax.swing.JOptionPane;
public class ShowAdd{

public static void main(String[] args) {
// TODO Auto-generated method stub
   int integer1;
   int integer2;
String firstNumber=
JOptionPane.showInputDialog("ÇëÊäÈëµÚÒ»¸öÕûÊý£º ");
String secondNumber=
JOptionPane.showInputDialog("ÇëÊäÈëµÚ¶þ¸öÕûÊý£º ");
integer1=Integer.parseInt(firstNumber);
integer2=Integer.parseInt(secondNumber);
String Sum=
String.format("%dºÍ%dµÄºÍΪ£º%d ",integer1,integer2,integer1+integer2);
JOptionPane.showMessageDialog(null,Sum);
 }
 
 }

3.ÔÚ¿òÀïÃæ³öÏÖÁ½Ìõ¶Ô½ÇÖ±Ïß
import java.awt.*;
import javax.swing.*;
public class DrawPanel extends JPanel
{
  


Ïà¹ØÎĵµ£º

java ²»¶¨²ÎÊýʹÓÃʾÀý

public class javaTest {
public static void test(String ...strings){
for(String str: strings){
System.out.print(str + " ");
}
System.out.println();
}

public static void main(String[] args){
test("a", "b", "c", "ddd");
test( ......

ʵÏÖAMF3ÓëJavaÖ®¼äÊý×éµÄ´«µÝ(¶¯Ì¬´´½¨Êý×é)...

Ê×ÏÈ,AMF3ËÆºõ²¢²»Ö§³ÖList.ArrayListµÈÊý×éµÄ½âÎö...Java¿Í»§¶Ë´«µÝList¶ÔÏó,AMF3ÎÞ·¨½âÎöΪArray...
Ô­ÒòÊÇ:AMF3Ö»Ö§³Ö»ù´¡Êý¾ÝÀàÐÍ...
¹Ê,ÐèÒª½«ListµÈÊý¾Ýת»»ÎªObject[] !ÕâÑùAMF3²ÅÄܽ«Java´«µÝµÄÊý×é½âÎöΪArray...
ÓÉÓÚÊý×éµÄ´´½¨,¼´±ãÒ»¿ªÊ¼²»¸³Öµ,Ò²ÐèÒªÉèÖÃÊý×éµÄlength,Èç:String[] myString = new Str ......

ÔÚjavaÖÐʹÓÃkey valueÐÍÊý¾Ý¿âBerkeley DB

³ýÁ˹ØÏµÐÍÊý¾Ý¿âÍ⣬»¹ÓÐkey-valueÐÍÊý¾Ý¿â¿ÉÒÔÑ¡Ôñ£¬ÔÚ´óÐ͵IJéѯϵͳÖУ¬key-valueÐÍÊý¾Ý¿â¿ÉÒÔ³öÉ«µÄÍê³ÉijЩÈÎÎñ¡£
OracleµÄBerkeley DB¾ÍÊÇÒ»ÖÖkey-valueÐÍÊý¾Ý¿â£¬±¾ÎļòÒª½éÉÜÔÚjavaÖÐʹÓÃBerkeley DB¡£
PartKey.java:
import java.io.Serializable;
public class PartKey implements Serializable
{
priva ......

»Ø»÷¡°JavaÒÑËÀ"´«ÑÔ JavaÒÀ¾ÉµØÎ»ÎȹÌ

±àÕß°´£ºÔçÔÚÉÏÊÀ¼Í90Äê´ú£¬¸÷ÖÖ¹ØÓÚJavaÒÑËÀµÄ¶ÏÑÔ¾ÍÒѾ­¿ªÊ¼³öÏÖ¡£Ê®¶àÄêÖ®ºóµÄ½ñÄ꣬ÕâÑùµÄÑÔÂÛÒÀÈ»²»¾øÓÚ¶ú¡£ÒԹؼü´Ê"java is dead"ÔÚGoogleÖÐËÑË÷£¬µÃµ½´óÔ¼199,000Ìõ½á¹û£¬Óɴ˿ɼû²»ÉÙÈËд¹ý»òÆÀÂÛ¹ýJavaµÄËÀÍö¡£Õë¶ÔÕâÃÅÒÑËÀÊ®¶àÄêµÄÓïÑÔ£¬×÷ÕßÔÚÎÄÖиÅÊöÁ˵±½ñJavaµÄµØÎ»¼°Æä·¢Õ¹Ç÷ÊÆ£¬ÓÐÁ¦µØ»Ø»÷ÁËÕâЩ´«ÑÔ¡£È«Î ......

REST·ç¸ñµÄJava MVC¿ò¼Ü£ºWebWind¼ò½é

¼¸Ììǰ£¬¸Õ¿´ÁËIBM DeveloperworksÉÏij¸ö¼¼Êõ´óÅ£×öµÄ¹ØÓÚÉè¼ÆREST·ç¸ñµÄJava MVC¿ª·¢¿ò¼ÜµÄÎÄÕ£¬½ñÌìÔÚGoogle CodeÉÏ·¢ÏÖÁËÒ»¸ö»ùÓÚJavaµÄREST·ç¸ñµÄMVC¿ª·¢¿ò¼Ü£¬È¡ÃûWebWind
¡£
“WebWindÊÇÒ»¸öJava MVC¿ò¼Ü¡£ºÍ³£¼ûµÄMVC¿ò¼ÜÈçStruts¡¢WebWork²»Í¬£¬WebWindÌìÉúÖ§³ÖÓû§ÓѺõÄURL£¬ÈÃWebÓ¦ÓóÌÐò¶ÔËÑË÷ÒýÇæ¸ü¼Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ