1.打开eclipse,建立好工程,包和类,出现以下界面。
2.输入代码public static void main(string[] args){
System . out . println("true,I am a dev,and can program") ;
}
}
第二种方式,代码第二行不变,后面打上代码System . out. println("true,"+ "I am a dev," + "and can program" ) ; 因为没图就不上图了,知道这么打就行了。
第三种方式,和前面一样第二行不变,后面打上
System. out. print("true,");
System. out.print("I am a dev,");
System. out . print("and can program");
}
}
点击运行这样就OK了。