Redian新闻
>
限时特惠Barclay Arrival 万事达世界卡免费送400美金,首年无年费
avatar
限时特惠Barclay Arrival 万事达世界卡免费送400美金,首年无年费# ChemEng - 化学工程
b*k
1
try {
String xxxx = "whatever" }
catch (java.sql.SQLException ex)
{System.out.println("Exception: "+ex.toString());
System.out.println("\nStack Trace:\n");
ex.printStackTrace();
}
// I want to use this string xxxx here
String yyyy = Integer.parseInt(xxxx); 然后我得到了这个错误
cannot find symbol
symbol: variable xxxx
avatar
x*z
2
限时特惠Barclaycard Arrival World Mastercard Bonus 40,000 points
http://bit.ly/19CC4ZX
• Earn 40,000 bonus miles if you make $1,000 or more in purchases
in the first 90 days after account opening. 40,000 bonus miles equates to $
400 off your next trip!
• 0% intro APR on purchases for the first 12 months after account
opening. After that, variable APR, currently 14.99% or 18.99% depending upon
your creditworthiness.
• Earn 2X miles on all purchases
• No mileage caps and no foreign transaction fees
• Get 10% of your miles back when you redeem for travel
• Use miles for a statement credit toward any airline purchase to
any destination with no restrictions and no blackout dates
• Easily redeem your miles for statement credits toward flights,
cruises, car rentals, hotels and more
• Complimentary Triplt Pro subscription – the mobile travel
organizer that helps make traveling easier (an annual $49 value)
• $89 Annual Fee waived for 1st Year
http://bit.ly/19CC4ZX
avatar
b*k
3
我想我的问题是
应该如何把xxx export 到外面来?
avatar
a*w
4
把那个变量声明放到try前面,或者把parseInt放到try里面。

【在 b******k 的大作中提到】
: 我想我的问题是
: 应该如何把xxx export 到外面来?

avatar
T*U
5
String xxx = "";
try{
xxx = "whatever";
}
int yyy = Integer.parseInt(xxx);

【在 b******k 的大作中提到】
: 我想我的问题是
: 应该如何把xxx export 到外面来?

avatar
b*k
6
Thanks! anw and ThinkU
It works :)
avatar
b*k
7
包子送上 :)
avatar
z*e
8
java严谨的地方
因为初始化可能不成功
这个变量可能不存在
avatar
T*U
9
i think that was only a block variable

【在 z****e 的大作中提到】
: java严谨的地方
: 因为初始化可能不成功
: 这个变量可能不存在

avatar
a*n
10
i agree
i think its about the scope of the string variable

【在 T****U 的大作中提到】
: i think that was only a block variable
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。