Doing funny things with code, trying to copy code in TextArea leaving out comments
posted 3 years ago
Exercise is using a given class TextFlaeche:
(Sorry that there are lots of comments in there but we need them later on anyway...)
Write a program using RandomAccessFile to copy the code of TextFlaeche into a String "content"...
Make a TextFlaeche-Object, create a TextArea and copy the code upside down into the text area...
(With numbered lines and append())
To have more fun: LEAVE OUT THE COMMENTS!!!
It works somewhat like 7/10.
Problem is that it doesn't leave out the lines that begin with "/*" and I don't get why!
I used boolean kommentarVanish to leave out lines...