Quantcast
Channel: BlogoSfera » blocks
Viewing all articles
Browse latest Browse all 15

How do I place my main method into a try catch block?

$
0
0

I’m making a game and my try and catch blocks work inside the methods, but one of the criteria for my assignment is to place the main method into a try catch block as well. But whenever I wrap my main method in a try{ } block, it gives me a compile error: Illegal start […]

The post How do I place my main method into a try catch block? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 15

Trending Articles