Java -- object oriented

Object oriented 1 1.1 object oriented overview 1.1.1 function encapsulation The function / method encapsulates the code that specifically implements a certain function, and by writing a class with multiple specific functions, it stores one method after another. Methods are stored in classes. When you need to use them, you don't need to find ...

Added by celestineweb on Tue, 08 Mar 2022 17:41:09 +0200

Internal special study

Detailed explanation of Java internal classes Inner class Definition of internal class Defining a class in another given class or method is called an inner class. Internal classes can be divided into four types: member internal classes, local internal classes, anonymous internal classes and static internal classes. Let's introduce these four in ...

Added by kishan on Mon, 07 Mar 2022 10:37:55 +0200

[series of basic Java tutorials] Chapter 13 detailed explanation of Java Object class, String class, StringBuffer and StringBuilder (including principle analysis)

1, Object class 1.1 overview of object class Package: Java lang Class definition: public class Object Class Object is the root class of class hierarchy. Each class uses Object as superclass. All objects (including arrays) implement the methods of this class. Why define a hierarchy root class? Java believes that all objects have some basic ...

Added by mwkemo on Mon, 07 Mar 2022 05:27:16 +0200

Preliminary notes on java learning_ three

01 array introduction Introduction: array is a container that can store multiple values of the same data type. It is a continuous memory space opened up in memory int[] arr = {10,20,'a'}; System.out.println(arr[2]); // 97 double arr = {10,20,30}; System.out.println(arr[0]); // 10.0 ----------------------------------------------- prop ...

Added by mike12255 on Sat, 05 Mar 2022 07:05:22 +0200

Java -- generics and collections

generic paradigm A generic type is actually a type parameter used to specify a type. In order to count students' scores, it is required to design a Score object, including course name, course number and course Score. However, there are two kinds of scores: one is to take excellent, good and qualified as the result, and the other is to use dig ...

Added by saami123 on Tue, 01 Mar 2022 12:45:50 +0200

Java --- object and polymorphism

JAVA objects and polymorphism (object-oriented) Object oriented Foundation A class is equivalent to a template, and an object is an entity created according to the template. A class is an abstract data type, not a real concrete existence. Class properties: member variables and member methods. You can call member methods to make the class perf ...

Added by parse-error on Wed, 23 Feb 2022 18:25:33 +0200

Introduction to three Java process structures

Sequential structure The basic structure of Java is sequential structure. Unless otherwise specified, it will be executed sentence by sentence in order Sequential structure is the simplest algorithm structure Between statements and between boxes, it is carried out from top to bottom. It is executed by several in turn Select stru ...

Added by londonjustin on Sat, 19 Feb 2022 14:45:13 +0200

[Java] learning notes - use of methods

[Java] use of learning notes 4- method preface Main contents: โ˜‘๏ธ Understanding and use of methods. โ˜‘๏ธ The understanding and application of recursion. Tip: the following is the main content of this article. The following cases can be used for reference 1, Basic usage of method 1. What is the method A method is a snippet of code ...

Added by tripc1 on Sat, 19 Feb 2022 02:39:31 +0200

[boutique] ID card operation tools

theoretical basis 410001910101123 410001 910101 123 41000119910101123X 410001 19910101 123X 15 digits: 6-digit address code + 6-digit date of birth (900101 means born on January 1, 1990) + 3-digit sequence code Date of birth code (less than 1 and 2 digits plus 0 digits) and address code (less than 1 and 2 digits plus 0 digits) + date of birth ...

Added by Xajel on Fri, 18 Feb 2022 14:03:33 +0200

[Java] IO flow foundation

๐Ÿ : Blog home page: Incoming bogey ๐Ÿ“•: Today's article: [Java] IO stream Foundation ๐Ÿ’: I hope my interpretation of the source code can help you ๐ŸŽˆ ๐ŸŒฑ: Boji is still trying to learn JavaSE. If you have any questions or omissions, please give me more advice ๐Ÿ™ โ˜€๏ธ: On the way of self-study and growth, thank you for your company! No hurry ๏ผŒ No Pau ...

Added by phuggett on Thu, 17 Feb 2022 12:20:28 +0200