Search:

Type: Posts; User: Norm

Search: Search took 0.25 seconds.

  1. Replies
    6
    Views
    1,276

    Re: Suggestion to declare variable that is declared

    Depends on if you are using version 1.7 which has a new syntax. Before 1.7 it was always a {
  2. Replies
    6
    Views
    1,276

    Re: Suggestion to declare variable that is declared

    What version of the JDK are you using? There is a new version of the try statement in 1.7: try-with-resources
    It uses a ( instead of a { after the try.

    BTW The posted code is poorly formatted...
Results 1 to 2 of 2