Skip to content

Pikachu SSD #1779

Answered by zachgk
SiebeF asked this question in Q&A
Jul 7, 2022 · 1 comment
Discussion options

You must be logged in to vote

So, it looks like you have two different problems. The above problem is because you are putting that code into your terminal. The terminal expects shell code and you are passing it java code. The syntax error means that it doesn't even know what the code is trying to say because it is the wrong kind of code.

The second example in the IDE is better. The red line under predict is part of Java's checked exceptions feature. Basically, the predict function can throw some exceptions if something goes wrong and you need to either handle or ignore the exceptions. Search for "Java checked exception" and you should find some more details about how this works. You can also get suggestions from your …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiebeF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants