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

java ¶àÏß³Ì

 package server;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Bounce {
 public static void main(String[] args) {
  JFrame frame = new BounceFrame();
  frame.setDefaultCloseOperation((JFrame.EXIT_ON_CLOSE));
  frame.setVisible(true);
  System.out.format("%d",2);
 }
 
}
class Ball
{
 
 private static final int XSIZE = 15;
 private static final int YSIZE = 15;
 private double x = 0;
 private double y = 0;
 private double dx = 1;
 private double dy = 1;
 
 
 
 public void move(Rectangle2D bounds)
 {
  x += dx;
  y += dy;
  if (x < bounds.getMinX())
  {
   x = bounds.getMinX();
   dx = -dx;
  }
  if (x + XSIZE >= bounds.getMaxX())
  {
   x = bounds.getMaxX() - XSIZE;
   dx = -dx;
  }
  if (y < bounds.getMinY())
  {
   y = bounds.getMinY();
   dy = -dy;
  }
  if (y + YSIZE >= bounds.getMaxY())
  {
   y = bounds.getMaxY() - YSIZE;
   dy = -dy;
  }
 }
 
 public Ellipse2D getShape()
 {
  return new Ellipse2D.Double(x,y,XSIZE,YSIZE);
 }
}
class BallPanel extends JPanel
{
 private ArrayList<Ball> balls = new ArrayList<Ball>();
 
 public void add(Ball b)
 {
  balls.add(b);
 }
 
&nbs


Ïà¹ØÎĵµ£º

JAVA SQLSERVERÊý¾Ý¿âÁ¬½Ó

 package cn.ctgu.edu.ac;
import java.sql.*;
public class test {
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  String url="jdbc:sqlserver://localhost:1433;Database=ÍøÉÏÊéµê¹ÜÀíϵͳ;integr ......

Javaµ÷ÓÃC/C++ – JNI

×òÌì²Å¿´µ½£¬µ«ÊÇÓöµ½Ò»Ð©ÎÊÌ⣬½ñÌì½â¾öÁË£¬¼ÇÏ¡­¡­£¨²Î¿¼£ºhttp://netbeans.org/kb/55/beginning-jni-part1.html£©
ÎÒÓõÄÊÇNetbeans 6.7£¬µ«ÊǺÍÆäËûµÄÒ²Ó¦¸Ã´óͬСÒì°É¡£ »ù±¾Á÷³Ì£º JavaÕâ±ßµÄ£º
´´½¨javaÎļþ£¨´ønativeµÄ£©£¬»¹Òª¼ÇµÃÔÚÀàÖмÓÈ룺System.loadLibrary(xxx) ¡£
È»ºóÓÃjavahÀ´Éú³ÉC/ ......

java ¶àÏß³Ì ×¨Ìâ

CoreJava¶àÏß³Ì
Ï̵߳ĸÅÄ
Ïß³ÌÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬Ò»¸ö½ø³Ì¿ÉÒÔ°üº¬¶à¸öÏ̡߳£
ÿһ¸ö½ø³Ì¶¼¶ÀÏíÒ»¿éÄÚ´æ¿Õ¼ä¡£Ã¿¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·£¬¶øͬһ½ø³ÌÖеĶà¸öÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼ä¹¤×÷£¬ËûÃǹ²ÏíÒ»¿éÄÚ´æºÍ×ÊÔ´¡£
javaÖÐÓÐÁ½Öз½·¨´´½¨Ò»¸ö¶àÏß³ÌÀࣺ
1¡¢¼Ì³Ðjava.lang.ThreadÀ࣬¸²¸ÇT ......

JAVA¸ß¼¶Èí¼þ¹¤³Ìʦ¾ÍÒµ°à

¿Î³ÌÄÚÈÝ
¸ü¼ÓʵÓÿÆѧµÄJava»ù´¡¿Î³Ì
¾ßÓÐÔúʵµÄ±àÂ빦µ×ÊÇÒ»¸öJava¹¤³Ìʦ±Ø±¸µÄÄÜÁ¦£¬ÎÒÃÇÁ¦Çó´ÓѧԱ½Ó´¥JavaµÄµÚÒ»ÌìÆð¾ÍÅàÑøÆäÐγÉÕýȷ˼¿¼ÎÊÌâµÄ·½Ê½¡£ÎÒÃǵĹØ×¢µã²»½ö½öÔÚÓÚ¶Ôij¸öÀà¿â£¨API£©µÄÕÆÎÕ£¬¸ü¶àµÄÊÇÏòѧԱչʾÆóÒµÖÐÕæÕýÒªÖØÊÓµÄÎÊÌ⣬ÀýÈçÒì³£ÈçºÎ´¦Àí¡¢Ëã·¨ÈçºÎÓÅ»¯µÈ¡£Í¬Ê±£¬ÎÒÃÇ×¢ÖØÈÃѧԱÑø³ÉÁ¼ºÃµ ......

UbuntuÏ´Java¿ª·¢»·¾³[ÒýÓÃ]

°²×°ÓëÉèÖÃJDK
Sun JDKµÄ°²×°»ù±¾ÉÏÓÐÁ½ÖÖ·½Ê½:
1. ͨ¹ýUbuntuÌṩµÄ°ü¹ÜÀí¹¤¾ß½øÐа²×°
UbuntuÔÚÆä°ü²Ö¿âÀﶼ°üÀ¨ÓÐJDKµÄ°²×°£¬Ö»Òªsources.listÉèÖÃÕýÈ·£¬Í¨
¹ýapt-get, aptitude, Synaptic Package
ManagerµÈ¶¼ÄÜ°²×°£¬¶øÇÒÏà¹ØµÄÉèÖÃÒ²ÈÝÒ׵öࣻÔÚUbuntuµÄÐÂ
·¢²¼°æ±¾Àﶼ´øÁËJDK5.0,ºÍJDK6.0µÄ°²×°Ö§³Ö,¶øÇÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ