Re: java commenting out of code



Use a good editor, most IDEs have block commenting (i.e. add/remove // in
front of all selected lines with Ctrl+/ )

Remon

"patrick" <networkone@xxxxxxxxxx> wrote in message
news:1f8xf.4381$j7.100811@xxxxxxxxxxxxxxxxx
> Hmm,
>
> Still a problem if you want to comment out several methods.
> Also I often find that Ive copied in long methods, from the web say, which
> often use *'s a lot inside the method defimitions.
> patrick
>
> "Alan Krueger" <wgzkid502@xxxxxxxxxxxxxx> wrote in message
> news:RP7xf.2201$Ya5.576@xxxxxxxxxxx
>> patrick wrote:
>>> /**
>>> * bla bla bla
>>> */
>>> void method A()
>>> {
>>> ...
>>> }
>>>
>>> All the astisisks have to be got rid of first, then enclose with /* and
>>> */
>>> I find this tedious.especially with big blocks of code.Is there an
>>> easier way ?
>>
>> If you use // for in-method comments, just comment the method not the
>> preceding comment.
>
>


.