Vector vt = gathering.loadRePay(clientId,salerid,currencytype);
vt = vt==null?new Vector():vt;
BigDecimal gaMoney = new BigDecimal(money);
BigDecimal beMoney = new BigDecimal(money);
求这一段代码解释!!java
vt = vt==null?new Vector():vt;
BigDecimal gaMoney = new BigDecimal(money);
BigDecimal beMoney = new BigDecimal(money);
求这一段代码解释!!java
解决方案 »
- 关于System.in的标准输入的问题
- JLIst中清空所有内容
- 就是读取文本文件里边我输入个回车咋去 除 在另一个帖子 发了 说了半天 没一个人会 真是无语了
- "=="的问题
- 自己试验性的代码,运行结果居然不是我所想要到的,到底哪错了?
- 怎么把JTextArea中的内容导出到Excel文件中
- 300分求Crystal Reports 8.0 Professional Edition 下载地址!
- unix下HelloWorld编译出错
- if实现语句
- 住了20天刚出院(不是非典),毕业设计还没做好,就要交了,急啊!!!
- java 如何判断字符串中某个字符第五次出现的位置
- JComboBox中添加适当的监听器
等价于
if(vt == null)
vt = new Vector();
Vector vt = gathering.loadRePay(clientId,salerid,currencytype);
if(vt==null){
vt = new Vector();
}
BigDecimal gaMoney = new BigDecimal(money);
BigDecimal beMoney = new BigDecimal(money);
--------------------------------------------------
if(vt==null){
vt = new Vector();
}
应该改if(vt == null)
{
vt = new Vector();
}else
{
vt = vt
}