0

Hey guys, I'm having a problem with trying to replace a string in funky.jar from a java program.

The string in funky.jar is called house.
The default value of house = "brick".

Is there a way I can code my java program to change funky.jar's string to maybe something like "doublebrick".

2
Contributors
1
Reply
10
Views
4 Years
Discussion Span
Last Post by stultuske
0

Strings can not be modified. they're immutable. they can be re-referenced, though.
well, how about you call a getMethod to get the value of the reference, and start building with that?

but in the end: can you change the String itself? no.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.