I have a file with a big list of strings which is of the form
key1=value1
key2=value2
...
I need to add a string for eg. (Long) after every equal sign. And create a new file with these new strings:
key1=(Long)value1.
key2=(Long)value2.
...
How to implement this with a java program?
=and replace it by=(Long). Look in the methods of classStringfor usefule methods that you can use for this.awk -F= '{ print $1"=(Long)"$2 }' bigfilereplaceover the default javareplaceif you can?