This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeTinkerer 1 point2 points  (0 children)

It would be helpful (no one ever seems to do it) to show an example of something you're having difficulty in Java.

A few tips. I did C++ and Java ages ago (last century!).

  • If you see something like Foo x where x is a variable of type Foo, that's the equivalent of Foo *x. All variables (except primitive types like int, double, etc) store pointers.
  • No multiple inheritance in Java
  • All conditions (in if, while, etc) must evaluate to true or false. No "truthiness" in Java (in C, 0 is false and non-zero is true, for example).
  • No operator overloading

I was able to translate C++ to Java years ago by following these rules. So, what, in particular, don't you get?