How to implement PHP's dynamic array in JAVA

藏色散人
Release: 2023-03-13 11:40:01
Original
2001 people have browsed it

How to implement PHP's dynamic array in JAVA: 1. Get the value through "new HashMap();"; 2. Get the value through "new HashMap();". ,>,>

How to implement PHP's dynamic array in JAVA

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

How about JAVA Implementing dynamic arrays in PHP?

java implements php array:

Similar to java's Map

Use numbers to get values:

HashMap<Integer, Object> map = new HashMap<Integer, Object>();
Copy after login

Use strings to get values:

HashMap<String, Object> map = new HashMap<String, Object>();
Copy after login

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to implement PHP's dynamic array in JAVA. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template