Display a comment in a JavadocTag(s): Environment
Use the numerical identity to represent the / in the javadoc section to avoid any conflict with a real comment.
import java.awt.*; public class Example { /** * Simple Frame * <pre> * /* create a frame */ * Frame f = new Frame() * </pre> * @param args */ public static void main(String args[]){ Frame f = new Frame(); f.setSize(200,200); f.setVisible(true); } }
You can represent any character with a numerical identity, the syntax is &#nnn; where nnn is the Unicode code (decimal value) of the character.