hi there, how can i display an error message in java and stop compile program at that point of the error?
realnsleo 0 Light Poster
Recommended Answers
Jump to Posthow do i do that???
try{
// code that you want to run
}
catch(NullPointerException nEx){
// what you want it to do or show when a nullpointerexception occurs
}
catch(Exception ex){
// what has to be done in case of another exception
}a more simple form (the …
All 3 Replies
lucky1981_iway 0 Light Poster
realnsleo 0 Light Poster
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.