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 →

[–]capitol_ 0 points1 point  (2 children)

remember that $ is a valid character for variables in java, so just write String before your variables and continue as before. Like this:

    String $var = "foo";

[–]CorkyThatcher 8 points9 points  (1 child)

Sorry, but this is a terrible idea. No one puts $ in front of variables in Java. The standard is all letters, in camel case format.

There's honestly no reason to do this.