Use eclipse for development and eclipse for development
Eclipse: http://www.eclipse.org/
Click eclipse.exe to use eclipse.
Workspace: workspace Project: Project
Open eclipse, right-click Package Explorer, select New> Java Project, and enter the Project Name.
Create a Package, Interface, and class in the same way
Package chavez. wang; public interface Student {public void study (); public void eat ();}
Package chavez. wang; public class ChineseStudent implements Student {@ Overridepublic void study () {System. out. println ("Learning") ;}@ Overridepublic void eat () {System. out. println ("dinner ");}}
Package chavez. wang; public class Test {public static void main (String [] args) {ChineseStudent cs = new ChineseStudent (); cs. study (); cs. eat ();}}
Eclipse automatically compiles the source files when they are saved. To Run the command, right-click the file and choose Run As. The result is displayed in the Console window.