class Person {
//private
String name;
void setName(String n){
name = n;
}
String getNa...
(詳全文)
發表時間:2008-03-27 17:08:21 | 回應:1
class Book{
String name;
String author;
void printBook(){
System.out.println(”書名:”+name);...
(詳全文)
發表時間:2008-03-27 16:44:54 | 回應:0
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ItemListener;
import java.awt.event...
(詳全文)
發表時間:2008-03-04 01:59:36 | 回應:0
import java.awt.FlowLayout;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JList;
im...
(詳全文)
發表時間:2008-03-04 01:58:54 | 回應:0
//大家來玩21點!!!
。。。。PointTwentyOne.java 。。。。
import java.util.Scanner;
public class Po...
(詳全文)
發表時間:2007-12-21 12:53:14 | 回應:0
import java.util.Random;
public class InitArray
{
public static void main(String args[])
{
int...
(詳全文)
發表時間:2007-12-18 11:01:57 | 回應:0
public class InitArray
{
public static void main(String args[])
{
final int ARRAY_LENGTH = 7;
...
(詳全文)
發表時間:2007-12-18 10:28:03 | 回應:0
//跟電腦比大小
import java.util.*; //*代表全部宣告
public class A
{
public static void main(String a...
(詳全文)
發表時間:2007-12-14 13:16:24 | 回應:0
-------Craps.java-----
import java.util.Random;
public class Craps
{
private Random randomNumbers = ne...
(詳全文)
發表時間:2007-12-13 15:51:45 | 回應:0
//跳出小視窗
import java.awt.*;
import java.awt.event.*;
public class TestFrame
{
public static voi...
(詳全文)
發表時間:2007-12-12 12:44:15 | 回應:0
public class A4
{
publicstatic void main(String args[])
{
System.out.print(” ...
(詳全文)
發表時間:2007-11-23 12:51:32 | 回應:1
import java.util.Scanner;
public class Addition
{
public static void main(String args[])
{
...
(詳全文)
發表時間:2007-11-09 13:16:38 | 回應:4