switch...case, if...else, for and while loops, do...while statements, double for loops

Articles Catalogue switch...case ** Summary: ** if...else Note: Loop statements: for and while loops for loop statement while loop statement do...while statement Double for cycle switch...case Basic structure: switch(key) { case value : break; default : break; } P ...

Posted by JohnnyBlaze on Wed, 24 Jul 2019 04:23:26 -0700

Your own java editor

Making GUI Interface New projects First, double-click to open Eclipse on the desktop, wait for it to start, and click the New-> Java Project option in the menu File. Fill in the name of the project MyEdit in the pop-up window and click the Finish button. 2 Create packages and classes After the project is created, we need to create t ...

Posted by robot43298 on Wed, 17 Jul 2019 11:19:35 -0700

HDU2896 AC Automata

Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description When the sun's glory is gradually obscured by the moon, the world loses its light, and the earth ushers in its darkest hour... At such moments, people are very excited - how happy it is that we can see the world wonder once in 500 years in ...

Posted by virken on Thu, 11 Jul 2019 16:38:38 -0700

The Android Studio project is packaged into jar

The Android Studio project is packaged into jar   Foreword: In eclipse, we know how to export a project as a jar package. Now Android Stuido is widely developed. Here we introduce the use of AS project packaged as jar, jar and arr step by step.   1. Function: To be used by other projects, pack the project into jar   Step 2 (Android Studio): 1. ...

Posted by Moharo on Tue, 09 Jul 2019 18:38:31 -0700

Initialization of member variables in Java

Member variables: defined in a class and owned by a class; can be modified by public, private, protect ed, static; stored in the heap; new objects must be used before being modified by static; all methods of the current class can be invoked; if the class has subclasses, subclasses can also be invoked; and no assignment can be made. If no primit ...

Posted by Inkeye on Fri, 05 Jul 2019 17:12:16 -0700

JAVA Learning Notes--First Identity Container Class Library

1. Preface Since everything in JAVA is an object, holding objects is particularly important. In JAVA, we can hold objects by creating a reference to them:     HoldingObject holding; You can also create an array of objects to hold a specific set of objects:     HoldingObject holding  = new HoldingObject[10]; However, an object reference ...

Posted by troybtj on Thu, 04 Jul 2019 09:26:28 -0700

Understanding different sets in JAVA

Today, after searching the Internet, I found a blog about java collections, which is very well organized. I intentionally copied it to share with you In this lecture: Collection collection Before we talk about collection, let's distinguish three concepts: colection set, used to represent any kind of data structure Collection collection int ...

Posted by AbsolutelyFreeW on Sun, 30 Jun 2019 11:05:01 -0700

How to locate crash errors in ndk development using android studio

How to locate crash crash crash errors in ndk development using android studio In the development of ndk, once the jni layer code has problems, it will print the following information, and then flip back directly. At this time, people are very mad. They can only trace the problem by printing logs in various jni functions, but the efficiency ...

Posted by egmax on Thu, 13 Jun 2019 13:37:25 -0700

Python, PyCharm 2017 Installation Tutorial, Including Registration Code

Copyright Statement: This article is the original article of blogger [limin13215]. Welcome to reprint it. Reprint the link address: http://blog.csdn.net/limin2928/article/details/69267184! Catalog (?)[+] [Introduction]: I knew it a long time ago Python It's a very powerful scripting language. I haven't had a thorough understanding ...

Posted by mhenke on Fri, 07 Jun 2019 13:15:30 -0700

Optimize Android Log class and save log content to file

What is the purpose? Why optimize log? Take two examples. When we encounter problems in development, we like to use log to help us analyze problems. Usually, we don't have the habit of deleting the log output code after solving the problems, so the problem comes. Others can also analyze your program's vulnerabilities based on the log informatio ...

Posted by gilbertwang on Tue, 04 Jun 2019 11:13:27 -0700