I believe that that string switch statements was recently added in a newer version of Java. In that case, you'll need to update JDK.
|
Getting this error, I tried searching it up but I cannot find anything.
Code:src\server\model\players\skills\Crafting.java:316: incompatible types found : java.lang.String required: int switch (type) {
Where the error is
Code:private static void jewelryMaking(final Client c, final String type, int itemId, final int amount) { switch (type) { case "RINGS":
I believe that that string switch statements was recently added in a newer version of Java. In that case, you'll need to update JDK.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |