Java core technology -- Reflection

1, Class and Java reflection Class textFieldC=tetxField.getClass();      // Tetxfield is a JTextField class object Main description of reflection accessibility   1. Access construction method Each Constructor object represents a construction method, and the corresponding construction method can be manipulated by ...

Posted by kctigers23 on Mon, 08 Nov 2021 16:16:58 -0800

[Java] take you from zero to a series of 5-depth analysis of array definition and use in Java

Foreword: in this article, we learn the definition and use of arrays. We have learned some basic contents of Java before, and then today we will learn arrays in Java. Each picture: Let's go into the study of arrays ba! 1, Basic usage of array To understand the basic usage of arrays, first understand: what is an array? In fact, ar ...

Posted by w00kie on Sat, 06 Nov 2021 12:51:52 -0700

Java Se and objects

        As we all know, C language is process oriented. It focuses on the process of the problem, analyzes the steps of solving the problem, and gradually solves the problem through function call. Java is based on object-oriented, which focuses on objects, that is, the main body involved in completing a thing, splitting a th ...

Posted by Jessup on Fri, 05 Nov 2021 14:39:08 -0700

Java method definition / formal parameter / argument / return value / statement block / method overload

Statement block Statement blocks (compound statements) are any number of simple Java statements enclosed in curly braces. Block determines the scope of the local variable. The program code in the block, as a whole, is to be executed together. A block can be nested within another block, but variables with the same name cannot be declared within ...

Posted by iii on Mon, 01 Nov 2021 03:23:58 -0700

Use spire.doc to export the standard format word that supports editing Latex formula

background Some teaching assistant labeling requirements in the past. When exporting the question bank, you want to export word to view the finished product effect offline, because it is only used for preview. In order to follow the front-end style, the scheme was to directly generate html and write a word file header, so that you can open and ...

Posted by pup200 on Sat, 30 Oct 2021 07:58:39 -0700

JavaSE02, array, reference, array copy, two-dimensional array

1. Three ways to define arrays Array: a collection that stores a set of data of the same data type public class TestDemo { public static void main(String[] args) { int[] array = {1,2,3,4,5,6,7}; // Array defined and initialization [] cannot put any numbers // matters needing attention: // 1. When defining ...

Posted by thatsme on Thu, 28 Oct 2021 16:13:25 -0700

JAVA cultivation script Chapter 11: sorting, there is no best and most complete, only better and more complete

Previous period: JAVA cultivation script Chapter 1: Painful torture JAVA cultivation script Chapter 2: Gradual demonization JAVA cultivation script Chapter 3: Jedi counterattack JAVA cultivation script Chapter 4: "Closed door cultivation" JAVA cultivation script Chapter 5: "Sleeping on firewood and tasting gall" JAVA cultiva ...

Posted by Steven_belfast on Sun, 24 Oct 2021 01:34:00 -0700

JavaSE02, method, recursive iteration

1, Input and output The first way: import java.util.Scanner; public class TestDemo { public static void main(String[] args) throws IOException { System.out.print("Enter a Char:"); char i = (char)System.in.read(); // Alt + ENTER System.out.println("your char is :"+i); } } The second way: 1. If an intege ...

Posted by achilles on Sat, 23 Oct 2021 20:42:57 -0700

JavaSE_ Knowledge point (lower 1) (set, IO stream)

Java -- collection, IO stream 1. Set (java.util. *) (1) 1. Overview I. a set is actually a container (carrier) that can store multiple objects; (array is the simplest set); II. The basic data type and java object cannot be stored in the collection, but the memory address of the java object is stored; III. the bottom layer of each diff ...

Posted by rotwyla98 on Wed, 13 Oct 2021 22:17:09 -0700

JAVA language syntax_ Array (part4)

JAVA language syntax 4, Array 1. Overview of arrays Overview of arrays: (1),Understanding of arrays: array Array,It is a collection of multiple data of the same type arranged in a certain order, named with a name, and managed uniformly by numbering. (2),Array related concepts: > Array name > element > Corner mark, subscript, ...

Posted by celestineweb on Wed, 13 Oct 2021 08:31:07 -0700