发博文
个人资料
球球
球球
  • 博客等级:
  • 博客积分:82
  • 博客访问:808
  • 关注人气:0
访客
加载中…
好友
加载中…
评论
加载中…
留言
加载中…
博文

 

Three officials in Anhui Province have been suspended amid an investigation into the suspicious death of a businessman who had petitioned the central government over local abuses of power.

 

petition:请愿,恳求

 


A Harvard University dropout who ushered in the home computer age and made billions of dollars along the way will have his last official day of work at Microsoft on June 27.

 

dropout:辍学学生

 

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

Substitute Dmitri Torbinski and Andrei Arshavin scored to give Russia a deserved 3-1 win

over Netherlands and a semifinal berth at the Euro 2008.

 

semifinal berth:半决赛席位

 


China, Brazil Both Notch up Second Consecutive Win at FIVB World GP Preliminaries.

 

notch up:达到,完成

 


An underwater robot will be used to search for the sarcophagus of ancient Egyptian Pharaoh

M

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

Guus Hiddink will use his inside knowledge and magic trying to mastermind the downfall of his native Netherlands in the third Euro 2008 quarterfinal on Saturday.

 

mastermind:策划,谋划

 


Malaysian kung fu actress Michelle Yeoh has teamed up with Hong Kong producer Terence Chang and Tang Zaiyang, a well-known Taiwan media personality, to set up a new talent agency.

 

team up with:与……合作

 

 

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

Chinese President Hu Jintao held his first live online chat with netizens on Friday, telling

them divergent voices could be heard in the country.

 

divergent:分歧的,散发的,偏离的

 


The premiere of Dreamworks' 'Kung Fu Panda' was postponed in southwest China's Sichuan

Province to 'appease the survivors' of the May 12 earthquake.

 

appease:平息,安抚,缓和

 


CCTV anchorwoma

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

Chinese poet Yin Lichuan's second directorial offering, 'Knitting,' is among the first

beneficiaries of a new project aimed at exploring markets for independent films.

 

beneficiary:受益人,受惠者

 


The Chinese capital has offered restaurants an official English translation of local dishes

whose exotic names can leave foreign visitors frustrated and famished.

 

famished:极饿的

 

 

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

Israel on Wednesday officially confirmed that an Egyptian brokered truce with Hamas-led Palestinian militant groups in the Gaza Strip, starting at 6:00 am (0300 GMT) on Thursday morning.

 

broker:v.中间调解 n.掮客,经济人

truce:休战协定

Egyptian brokered truce:埃及人牵头的休战协定

 

 

The Boston Celtics captured their record 17th championship, and first since the Larry Bird era 22 years ago, by trouncing the Los Angeles Lakers 131-92 in the NBA Finals Game Six in Boston Tuesday.

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

逆转!神奇的土耳其人!

 

当捷克人在下半场把比分优势扩大为2:0的时候,几乎所有人都觉得土耳其人无力回天了。甚至看台上的土耳其球迷也开始眼神呆滞,做好了接受失败的心理准备。连他们自己都没想到,自己的球队会在剩下的时间里给他们带来这么多的快乐(什么时候中国球迷才能享受到一样的快乐?)。

 

一切从图兰的劲射破门开始。切赫的迅速移动展现了世界一流门将的素质,但他却没有作出成功的扑救。皮球鬼使神差地钻入死角,宣告土耳其人冷不防地走出了逆转的第一步。

 

一个球的差距点燃了土耳其人的希望。他们就像一簇簇红色烈火,不断地冲击捷克队的防线,尽管换来的都是无功而返。重压之下,捷克人还是崩溃了,铸成大错的不是别人,正是人们普遍认为最重要的一环——门神切赫。

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

从键盘输入字符,并倒序显示

 

 

import java.io.*;
import java.util.*;

 

public class JavaIO
{
 public static void main(String [] args)
 {
  try
  {
   System.out.print('输入:');
   InputStreamReader isr=new InputStreamReader(System.in); //将键盘输入的字节流转化为字符流
   BufferedReader br=new BufferedReader(isr); //读取字符流
   String str=br.readLine();
   char c[]=str.toCharArray(); //根据str生成字符数组c
   char[] cReverse=new char[c.length]; //创建与c同样长度的字符数组cReverse
   int i;
 &

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

网上看到的挺说明问题的实例,为便于查看稍作修改后放在这里,望原作者海涵。

 


实例1:基本类型作为参数传递

public class ValueTest1
{
public static void main(String[] args)
{
int n = 3;
System.out.println('Before change, n = ' + n);
changeData(n);
System.out.println('After changeData(n), n = ' + n);
}
public static void changeData(int nn)
{
nn = 10;
}
}

输出结果为:
Before change, n = 3
After changeData(n), n = 3


分析:基本类型作为参数传递时,是传递值的拷贝,无论你怎么改变这个拷贝,原值是不会改变的。即nn的值发生改变时,n的值不会发生改变。

 

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

 

假设工作目录在C:\java,先在该目录下建立一个Mypackage文件夹。

建立二元运算类BinCalCls,并使该类属于包Mypackage。

BinCalCls.java内代码如下:

package Mypackage;
public class BinCalCls //二元运算
{
 public static int add(int x,int y)//加
 {
  return x+y;
 }
 public static int minus(int x,int y)//减
 {
  return x-y;
 }
 public static int multi(int x,int y)//乘
 {
  return x*y;
 }
 public static int divide(int x,int y)//除
 {
  return x/y;
 }
 public static int max(int x,int y)//最大值
 {
  return (x>y)?x:y;
 }
 public static int min(int x,int y)//最小值
 {
  return (x
 }
}

通过编译

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
  

新浪BLOG意见反馈留言板 不良信息反馈 电话:4006900000 提示音后按1键(按当地市话标准计费) 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

新浪公司 版权所有