Java构造函数同名类 Java'for loop' Java线性搜索 Java构造函数同名类 public class Sample{ public Sample(){ System.out.println("This is a constructor"); } public static void main(String args[]){ Sample obj = new Sample(); } } Java'for loop' Java线性搜索