EvilZone

Programming and Scripting => Java => : DreX September 14, 2014, 04:29:19 PM

: AWTException and IOException help
: DreX September 14, 2014, 04:29:19 PM
Can I put both these lines in my "main" line?

How do I make this to work...so that I can use BufferedImage and my MouseMovement.
: Re: AWTException and IOException help
: Deque September 14, 2014, 05:21:13 PM
You separate several thrown exceptions with a comma:
: (java)
public static void main(String[] args) throws IOException, AWTException {

Alternatively, but usually not recommended, you can define a parent class for throws:
: (java)
public static void main(String[] args) throws Exception {
: Re: AWTException and IOException help
: DreX September 14, 2014, 05:26:20 PM
You separate several thrown exceptions with a comma:
: (java)
public static void main(String[] args) throws IOException, AWTException {

Alternatively, but usually not recommended, you can define a parent class for throws:
: (java)
public static void main(String[] args) throws Exception {

thank you. first one did the trick just fine.