Explain on the "tools" you are referring to? Switch statements make your code far cleaner than and can become a good practice.
Example:
if (obj.getString().equals("blah blah blah)) {}
else if...
Type: Posts; User: Paramvir
Explain on the "tools" you are referring to? Switch statements make your code far cleaner than and can become a good practice.
Example:
if (obj.getString().equals("blah blah blah)) {}
else if...
It wouldn't be something that I'd personally use, just because of preference, however an IDE that I do recommend to you is IntelliJ IDEA.
You should try looking into JMF studio, I think you gain access to your webcam from there.
Well, its not that hard. I'll explain it in pseudo-code:
- KeyEvent from user stating jump action
- Get player coordinates
- Add half+ of the gravity amount to the jump above
So in your...
Even though the good people above have helped you solve your problem, I'd like you some advice:
1. Always start class names with an Uppercase letter.
2. Use switch statements for primitive types...
As Norm said as above, use the code tags. So you're asking the numbers won't add up in decimal form? Well thats because you're casting them to an integer.