Java Basic Tutorial - List (List)
Overview of collections
Collection in Java refers to a series of interfaces and classes for storing data, which can solve complex data storage problems.
Guide: import java.util. *;
The simplified set frame diagram is as follows:
List. List
ArrayList
List is an interface:
public interface List<E> extends Collection<E>{...}
ArrayList ...
Posted by cdherold on Fri, 12 Jul 2019 13:37:24 -0700
Deeply and Simply Understanding Rx Java Evolution Principle
Summary
Rxjava and RxAndroid are becoming more and more common in Android development. The idea of functional programming and coding is still very cool. Today, this article will not introduce the use of RxJava, but how the idea of RxJava evolved from our original coding idea.
A citation
First, introduce a very good post. http://www.devtf. ...
Posted by umer on Wed, 10 Jul 2019 17:44:43 -0700
ES6: Arrow function
lambda functions are anonymous functions. Before ES6 was released, we usually wrote anonymous functions like this.
var selected = allJobs.filter(function (job) {
return job.isSelected();
});
ES6 introduces a new grammar for writing functions
var selected = allJobs.filter(job => job.isSelected());
Its syntax is very simple: i ...
Posted by dansk on Wed, 10 Jul 2019 12:03:33 -0700
New features of Java 8
Java 8 new features with Example
https://www.youtube.com/playlist?list=PLsyeobzWxl7qbvNnJKjYbkTLn2w3eRy1QFirst, you can write method body in the interface
When a new method is added to the interface, a method body can be brought along.
Benefits:
When the new interface is released, the classes that previously implemented the interface need n ...
Posted by rocketsprocket on Tue, 09 Jul 2019 18:18:41 -0700
Stream API for Java 8 Learning Notes
ABSTRACT: Origin http://peijie2016.oschina.io Welcome to reprint, keep the abstract, thank you!
Stream is an API introduced in Java 8 that heavily uses lambda expressions.
Stream can process data sets in a streaming way. Before Java 8, we need iterators to process these sets, such as iterators, which are external iterations. Stream is in ...
Posted by noisyscanner on Fri, 05 Jul 2019 17:47:43 -0700
Data Types and Common Methods
Reading catalogue
Introduction
2. Numbers
String
List
5. Yuan Zu
Dictionary
Seven. Collection
Summary of data types
Operator
Character Coding
11. Document Processing
Homework
# An Introduction
1 What is data?
x=10, 10 is the data we want to store
2 Why data should be classified into different types
Data is used to represent sta ...
Posted by nano on Wed, 03 Jul 2019 12:08:36 -0700
Introduction to Functional Programming
What is Functional Programming
Functional programming is a programming paradigm that treats computer operations as calculations of functions.The most important basis of a functional programming language is the lambda calculus.Moreover, functions of the lambda operator can accept functions as inputs (parameters) and outputs (return values).Funct ...
Posted by MichaelHe on Fri, 28 Jun 2019 09:35:02 -0700
LINQ Delayed Query
LINQ defines a series of standard query operators, through which we can use query grammar or method grammar to query data sources. LINQ does not query data sources immediately after defining query statements, but only when it traverses the returned results through foreach. This technology is called LINQ delayed query, for example:
//Delayed qu ...
Posted by Kaboom on Thu, 27 Jun 2019 15:06:32 -0700
New features of Java 5, Java 6, Java 7, Java 8
Java5:
Generics:After referencing generics, it allows you to specify the type of elements in a collection, eliminates mandatory type conversion, and has the advantage of type checking at compile time.
As parameters and return values, Generic is the cornerstone of vararg, annotation, enumeration, collection.
A. Type Safety
When y ...
Posted by [PQ3]RogeR on Wed, 26 Jun 2019 10:41:14 -0700
Thread Control of C# Multithreading
Programme 1:
Start: Thread.Start(); Stop: Thread.Abort(); Stop: Thread.Suspend(); Continue: Thread.Resume();
private void btn_Start_Click(object sender, EventArgs e)
{
mThread.Start(); // start
}
private void btn_Stop_Click(object sender, EventArgs e)
{
mThread.Abort(); // t ...
Posted by Jackount on Mon, 24 Jun 2019 12:04:37 -0700