This site requires JavaScript, please enable it in your browser!
Greenfoot back
tylers
tylers wrote ...

2013/2/17

try-with-resources not supported

tylers tylers

2013/2/17

#
why do i get try-with-resources not supported in-source 1.6 (use source 7 or higher to enable try-with-resources) code:
 [s]try(){
        getWorld().removeObject(this);
    }catch(NullPointerException NPE){[/s]
    }
fixed it now
mjrb4 mjrb4

2013/2/17

#
The "try()" shouldn't have the "()" after it.
You need to login to post a reply.