I am just starting out java, mainly programme mainframe(procedural) but trying hard, I have large sql queries for payments done in query analyser but want a program to append the text 'query.append("' at the beginning of a line and of course ' ");' to the end of a line.
That code doesn't compile. I think you have the "char" data type, which is a single character, confused with either an array of char's or a String object. You should get familiar with the Java Tutorial. Plenty of helpful information, like what Data Types are available and how to perform IO.
How about this as a first stab?Caveat: if the read line contains any " characters, you'll need to escape them by preceding each one with a backslash (\). But it's time for bed so I'll leave that for you.
moose poop looks like football shaped elk poop. About the size of this tiny ad: