Skip to content

Tag: java

Errors with importing JavaPlugin to Eclipse

I want to make a plugin for Minecraft, but I have problem with importing JavaPlugin into Eclipse. When I type I get these 2 errors. I have tried restarting my computer, reinstalling Eclipse, downloading all over again but nothing works. I am sending a link to a screenshot. https://paste.pics/GHDFU Please help…

How can I get the value at the end of a string?

I’m trying to write a simple and quick text-based java dungeon crawler. The player can type in simple 3 letter commands followed by a number value like this: NTH 21, or ATT 3, or CST 102, etc… I know how to get the first 3 letter command using substring(). I also know I can use substring() to get …

Java Calculator program issue

I am trying to develop a calculator program that inputs an arithmetic expression of the form number operator number = and computes the result of the expression. The expression will be evaluated from left to right not considering regular operator precedence. For example, the expression 14 – 5 * 3 = will …