✔ 最佳答案
do you want to see the 9 squares? or just the progamming logic you want...?
2012-10-22 16:07:12 補充:
public class play {
public static void main(String[] arg){
int[][] x = new int[3][3];
for (int i=0;i<x.length;i++){
for (int j=0;j<x.length;j++){
int num = (int) (1+Math.random()*9);
x[i][j] = num;//insert the numbers
}
}
for (int g=0;g<x.length;g++){
for (int i=0;i<x.length;i++){
System.out.print(" "+x[g][i]); //print number
}
System.out.println();
}
}
}
2012-10-24 10:13:36 補充:
BufferedImage img = null;
try {
img = ImageIO.read(new File("strawberry.jpg"));
} catch (IOException e) {
}
//for image
2012-10-24 10:15:06 補充:
ask the user for a number, if they get that number then they get that prize for that number??
2012-10-24 11:49:14 補充:
i can't post much code here.... hehe....
you know java? have a look at JOptionPanel
2012-10-26 05:05:59 補充:
nope....
good website? android phone java tutorial... that's how i learn my C/C++ &python