单行注释
public class test {
public static void main(String[] args) {
//这是一个单行注释
Vector<Integer> m = new Vector<Integer>();
}
}
多行注释
public class test {
public static void main(String[] args) {
/*
这是一个多行注释
*/
Vector<Integer> m = new Vector<Integer>();
}
}
文档注释
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
/**
这是一个文档注释
*/
Vector<Integer> m = new Vector<Integer>();
}
}