Java EE Basics (11)/eclipse Introduction

Source: Internet
Author: User

1. Java Development Tools (Introduction to common development tools)
    • A: Notepad software comes with the operating system
    • B: Advanced Notepad software
    • C: IDE for integrated development environment
      • (Integrated development environment)
    • The difference between D:eclipse and MyEclipse
      • A:eclipse is an extensible, open-source IDE.
      • Description of the characteristics of B:eclipse
        • Free
        • Pure Java language Writing
        • Installation free
        • Strong extensibility
      • C:myeclipse
        • Plug-ins that are added on the eclipse basis, charging the plugin
        • Providing a powerful system architecture platform in web development
    • E: Download http://eclipse.org/
      • ORG non-profit group
    • F: Installation
      • The green version of the decompression can be used (Eclipse)
      • Installation version double-click to run, all the way next (JDK)
    • G: Uninstall
      • The green version of the folder can be deleted directly
      • Install professional uninstall software or Control Panel add remove Program
2. Java Development Tools (HelloWorld case in Eclipse and Chinese)
    • A: Select the working space
      • The workspace is actually the directory where we write the source code.
    • B: Use Eclipse to complete a HelloWorld case
      • Code with project as base unit
      • Create a project
      • Create a Package
      • Create Class
      • Writing code
    • C: Compile and run
    • The d:eclipse of the Han Dynasty
      • Starting from Eclipse3.5, there is a dropins directory under the installation directory, just unzip the plugin and put it in the directory.
      • Similarly, uninstalling plug-ins in this way is also particularly convenient, recommended this way
    • E: Grammar Check Tips
      • Wavy Red Line
        • Must be processed, otherwise the compilation will pass
      • Yellow wavy Line
        • You can ignore him.
3. Java Development Tools (Overview of Eclipse's windows and views)
    • A: Every basic form of Windows is called a window
      • Packageexplorer display project structure, packages, classes, and resources
      • Outline display the structure of the class, easy to find, identify, modify
      • The result of the Console program running is displayed in the window
      • Hierarchy Displays the Java inheritance hierarchy, with the class selected F4
    • B: The view is made up of a combination of some windows
      • Java view
      • Debug view
4. Java Development tools (Basic configuration of Eclipse workspace)
  • A: Program compilation and operation of the environment configuration (generally do not change)
    • Window--Preferences--Java
    • Compilation environment: Compiler The highest version is selected by default.
    • Operating environment: Installed JREs will find the JDK you installed by default. We recommend that you configure the environment variables for Java.
    • Problem:
      • Low compile, high run. OK.
      • High compilation, Low run. No.
      • It is recommended that you compile and run the same version.
  • B: How do I get rid of the default annotations?
    • Window--Preferences--Java--code Style--code Templates
    • Select the content you do not want and edit it by editing it on the right.
    • Note: Please delete only the comments section, not the comments section.
  • C: Display and hide of line numbers
    • Display: In the left-most blank area of the code area, right-show line numbers.
    • Hide: Do the above action again.
  • D: Font size and color
    • A:java the font size and color of the code area:
      • Window--Preferences--general--appearance--Colors and Fonts--java Modify--Java Edit Text Font
    • B: Console
      • Window--Preferences--general--appearance--Colors and Fonts--Debug--Console font
    • C: Other documents
      • Window--Preferences--general--appearance--Colors and Fonts--Basic--Text Font
  • E: The form to mess up, how to do?
    • Window--Reset perspective
  • F: The console can't find it, what should I do?
    • Window--show View-console
  • G: Remove hover hint
    • Window--Preferences--java--editor--hovers. On the right, remove the combined hover hook.
    • The floating box of the code does not appear automatically. If you want to see a hint, hover your cursor over the code and press F2.
5. Java Development tools (use of content-assisted keys in Eclipse)
    • a:alt+/Cue function
    • b:main+alt+/,syso+alt+/, give other hints
    • C: Add Output statement, select the part that needs output, alt+/Select the last item
    • C: Define your own ALT +/
      • Windows--perference-java-editor-templates--new
6. Java Development Tools (use of shortcut keys in Eclipse)
    • A: New CTRL + N
    • B: Formatted ctrl+shift+f
    • C: Import Package Ctrl+shift+o
    • D: Comment ctrl+/,ctrl+shift+/,ctrl+shift+\
    • E: Move the code up or down the selected code ALT + up/down arrows
    • F: Check the source code selected class name (F3 or CTRL + mouse click)
    • G: Find the specific class CTRL + SHIFT + T
    • H: Specific ways to find specific classes CTRL + O
    • I: Give advice to ctrl+1, generate the left data type according to the right, generate method
    • J: Remove Code CTRL + D
    • K: Extraction method ALT + SHIFT + M
    • L: Renaming ALT + SHIFT + R
7. Java Development tools (how to improve development efficiency in eclipse)
    • ALT + SHIFT + S
    • A: Automatic generation of construction methods
    • B: Automatic generation of Get/set methods
8. Java Development Tools (a standard student class in Eclipse and its testing)
    • A: Case Demo
      • Implementing standard student classes and their tests with eclipse
9. Java Development Tools (interface abstract classes in Eclipse specific class code embodiment)
    • A: Case Demo
      • Implementing interface abstract class-specific class code with eclipse
10. Java Development tools (how to build jar packages and import into projects in eclipse)
    • What is A:jar?
      • A jar is a compressed package of multiple class files.
    • What's the use of B:jar?
      • Use what someone else has written.
    • C: Hit Jar bag
      • Select an item-right---export--java--jar--yourself to specify a path and a name--finish
    • D: Import jar Package
      • Copy to the project path and add to the build path.
11. Java Development tools (how to delete projects and import projects in Eclipse)
    • A: Delete Items
      • Select Item – Right-click – delete
        • Remove from Project area
        • Remove from hard disk
    • B: Import Project
      • Right-click in the project area to find the import
      • Find general, expand, and find
      • Existing Projects into Workspace
      • Click Next, then select the item you want to import
      • Note: The project name is selected here
12. Java Development tools (basic use of Eclipse break point debugging)
    • The role of A:debug
      • Debug program
      • View program Execution Flow
    • B: How to view the program execution process

      • What is a breakpoint:

        • is a marker, where to start.
      • How to set Breakpoints:

        • Where you want to see the program, you just double-click on the left side of the active program.
      • Where to set breakpoints:

        • where not to point.
        • Currently: we add on the first valid statement of each method.
      • How to run a program after you set a breakpoint:

        • Right--Debug as--Java application
      • See which places:

        • Debug: Where to test breakpoints
          • In this place, remember the F6, or click also can. See the execution of a row at a time.
        • Variables: Viewing variable variations of a program
        • Fordemo: The source file being viewed
        • Console: Consoles
      • How to go to breakpoints:

        • A: Double-click again
        • B: Find the debug view, variables interface, find breakpoints, and click, then see all the breakpoints, and finally click on that double fork.
13. Java Development tools (Eclipse view parameter passing issues in Java)
    • A: Breakpoint Demo
      • Breakpoint View parameter passing problem in Java
14. Common Objects (API overview)
    • A:API (Application Programming Interface)
      • Application Programming Interface
    • B:java API
      • is the class that Java provides to us, these classes encapsulate the underlying implementation,
      • We don't need to worry about how these classes are implemented, just learn how these classes are used.
15. Common objects (an overview of the object class)
    • A:object class overview
      • The root class of a class hierarchy
      • All classes are directly or indirectly inherited from this class
    • B: Construction method
      • Public Object ()
      • Recall why the object-oriented said:
      • The constructor method of a subclass is accessed by default for the non-parametric construction method of the parent class
16. Common Objects (the Hashcode () method of the object class)
    • A: Case Demo
      • public int hashcode ()
      • A: Returns the hash code value of the object. By default, the method is evaluated based on the address of the object.
      • B: Different objects, hashcode () generally will not be the same. However, the hashcode () value of the same object must be the same.
17. Common Objects (GetClass () method of object Class) (Master in Reflection)
    • A: Case Demo
      • Public final Class GetClass ()
      • A: Returns the run-time class for this Object.
      • B: You can get the full name of the real class of the object through a method in class.
        • Public String GetName ()
18. Common Objects (ToString () method of the object class)
    • A: Case Demo
      • Public String toString ()
      • A: Returns the string representation of the object.
    • public Stirng toString() {    return name + "," + age;}
      • B: Its value is equal to:
        • GetClass (). GetName () + "@" + integer.tohexstring (hashcode ())
      • C: Since the data by default is meaningless to us, it is generally recommended to override this method.
    • B: Final version
      • Automatically generated
19. Common Objects (the Equals () method of the object class)
    • A: Case Demo
      • A: Indicates whether another object is "equal" to this object.
      • B: By default, the reference to the object is the same.
      • C: It is generally recommended to override this method because the reference to the comparison object is meaningless.
20. Common objects (the difference between the = = number and the Equals method)
    • = = is a comparison operation symbol that either compares the base data type or compares the reference data type, the base data type compares the value, and the reference data type compares the address value
    • The Equals method is a method that can only compare reference data types, all of which inherit methods from the object class, and if the Equals method in the object class is not overridden, the Equals method and the = = number Compare reference data types without distinction. The overridden Equals method compares a property in an object

Java EE Basics (11)/eclipse Introduction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.