新手入门求大神指导,求用简单的方法说明。太高深的看不懂!
要怎么打印出ID和书本名称。。程序代码:
package lei; public class Lei { public static void main(String[] args) { System.out.println(); } private static String name; public String StringgetName(){ int id=0; steName("java"); return id+this.name; } private void steName(String name) { this.name=name; } public Lei getLei(){ return this; } }