RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Java>列表

使用NetBeans进行J2ME开发(三):低级图形用户界面Canvas

来源: 作者: 时间:2007-08-14 点击:
        for(int i=0;i<4;i++){
            
for(int j=0;j<3;j++){
                pics[i][j] 
= i*3 + j + 1;
            }

        }
       
        pics[
0][3= 0;
        
        Random rand 
= new Random();
        
for(int i=0; i<4; i++){
            
int x1 = rand.nextInt(3);
            
int y1 = rand.nextInt(4);
            
int x2 = rand.nextInt(3);
            
int y2 = rand.nextInt(4);
            
int n = pics[y1][x1];

最新评论共有 1 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章