[問題] 例外處理傳值問題?
請教一下要如何將y值傳到其他地方做使用? 謝謝!!
try
{
String b=strLine.substring(40, 45).trim();
double y = Double.parseDouble(b);
System.out.println(y);
}
catch(Exception e)
{
System.out.println("Error!!");
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.129.20.168
→
05/19 11:25, , 1F
05/19 11:25, 1F
→
05/19 11:45, , 2F
05/19 11:45, 2F