Java How to Change Default Comment Block in Java with NetBeans 7.4

  • Thread starter Thread starter Fifty
  • Start date Start date
  • Tags Tags
    Java
AI Thread Summary
To customize the default opening comment block in Java using NetBeans 7.4, navigate to Tools > Templates > Java > Java Class and click the "Open In Editor" button. The template can be edited, and it appears to be written using Freemarker or a similar template language, allowing for modifications to suit specific requirements, such as including an MLA-style comment block before the first package declaration. This approach provides a straightforward way to tailor the comment block to meet educational or personal preferences.
Fifty
Messages
33
Reaction score
0
I'm new to Java. My high school CS teacher requires an MLA-style comment block before the first package declaration in our programs, I was just wondering how I might change the default opening comment block.

I'm using NetBeans 7.4. I did some searching and I couldn't find much help. I mean I did, but most tutorials assumed java knowledge at a level far higher than mine at the moment.

Thanks for the help!
 
Technology news on Phys.org
Go to Tools > Templates > Java > Java Class, and click the "Open In Editor" button at the bottom. It looks like the template is written with Freemarker or something similar, but you should be able to work from what's there.

I think that's what you're after.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top