Kaskus

Tech

meguriaufutariAvatar border
TS
meguriaufutari
[ASK Blackberry Application Development] nihil pas print console
Agan2,

ane iseng2 develop application di blackberry pake eclipse (JRE 7). nah, ane iseng2 tuh bikin division by zero exception (int a = 100 / 0emoticon-Wink

nah statement itu ane masukin dalam try/catch block. tapi pas ke catch, ane coba print stacktrace nya, itu kaga ke print apa2 di console.

try {
int a = 100 / 0;
} catch (Throwable t) {
t.printStackTrace();
System.out.println(t.getMessage());
}

ane coba debug, masuk tuh ke catch nya. tapi kaga ke print apa2 di console nya. ane coba debug t.getMessage() nya, itu value nya null.

can somebody help?

Really appreciate it, thank you very much
0
516
3
GuestAvatar border
Komentar yang asik ya
Urutan
Terbaru
Terlama
GuestAvatar border
Komentar yang asik ya
Komunitas Pilihan