| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1008 人关注过本帖
标题:求教!大家看下
取消只看楼主 加入收藏
wxyljp
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2007-3-23
收藏
 问题点数:0 回复次数:0 
求教!大家看下

12. What is the difference between “error” and “exception”? (5 Points)

13. Read the following lines of code and answer the question below: (7 Points)
import java.awt.*;
import java.applet.*;
public class Test51` extends Applet
{
float[ ] x = {1.2, 3.4, 5.6, 7.8};
public void paint(Graphics g)
{
int s=0;
for( int i = 0; i < x.length; i++ )
s += (int)x[i];
g.drawString(" " + s, 30, 60);
}
}
1) What is the result after running the code?
2) Could we change the code “s += (int)x[i];” in the paint() method to “s +=x[i];”? Why?

14. If you develop a game with J2ME, how to handle voice call when the user playing game? (7 Points)

15. How to set Icon for your J2ME application instead of the default icon? (6 Points)

Part IV: Programming (30 Points)
16. How to play MIDI file and set the volume to 50? Please write the code. (10 Points)

17. How to read the data from txt file?Please write the code. (10 Points)

18. Write a simple chat program which can send message to server and receive info from server. (Only for the person who has 3 years experience.) (10 Points)

搜索更多相关主题的帖子: public between question following difference 
2007-03-23 21:26
快速回复:求教!大家看下
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013369 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved