Java: startingPath as “public static final” exception

后端 未结 5 1117
天涯浪人
天涯浪人 2021-01-26 13:00

[Updated, sorry about the change but now to the real problem] I cannot include try-catch-loop there for the exception from the method getCanonicalPath(). I trie

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 13:43

    You are missing the type of your variable, it should be

    public static void String startingPath ...
    

提交回复
热议问题