Tag

string

1 views collected around this technical thread.

AndroidPub
AndroidPub
Jun 13, 2025 · Fundamentals

Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap

This article explains how Kotlin's standard library provides concise builder functions such as buildList, buildSet, buildMap, and buildString to create immutable collections and strings efficiently, reducing boilerplate and eliminating lambda overhead while offering specialized variants for primitive types.

CollectionsKotlinbuilder-functions
0 likes · 7 min read
Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap
php中文网 Courses
php中文网 Courses
May 15, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function joins array elements into a string, demonstrates its basic syntax, shows how it handles sub‑arrays, and illustrates a special usage where no separator is provided, all with clear code examples.

BackendPHPTutorial
0 likes · 5 min read
Using PHP implode() to Join Array Elements into a String
Java Architect Essentials
Java Architect Essentials
Apr 9, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

This article examines why storing phone numbers as Java Strings rather than ints yields better memory usage, semantic correctness, and JVM-level performance, discussing primitive vs reference types, bytecode differences, string pooling, and real‑world case studies.

Data TypesJVMPhone Number
0 likes · 10 min read
Choosing Between int and String for Storing Phone Numbers in Java
php中文网 Courses
php中文网 Courses
Mar 4, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates simple replacement, multiple replacements, and character deletion through clear code examples, helping developers efficiently manipulate strings in backend applications.

BackendPHPphp-functions
0 likes · 5 min read
Using PHP str_replace for String Replacement and Deletion
Java Tech Enthusiast
Java Tech Enthusiast
Mar 3, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

Because phone numbers are identifiers that can contain symbols and exceed the numeric range of an int, storing them as a String—despite higher memory use—is semantically correct, avoids overflow, preserves formatting, and benefits from JVM string pooling, making String the preferred type in most Java applications.

Data TypesJVMJava
0 likes · 7 min read
Choosing Between int and String for Storing Phone Numbers in Java
Architecture Digest
Architecture Digest
Feb 21, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

The article examines the trade‑offs of using Java's primitive int versus the String class to store phone numbers, covering memory usage, JVM bytecode behavior, data semantics, and practical performance implications for large‑scale systems.

Data TypesJVMJava
0 likes · 8 min read
Choosing Between int and String for Storing Phone Numbers in Java
macrozheng
macrozheng
Feb 21, 2025 · Fundamentals

Why Storing Phone Numbers as Strings Beats Ints in Java

This article explains why using Java's String type for phone numbers is more memory‑efficient, semantically correct, and performant than using primitive int, covering JVM bytecode, memory layout, string pool optimization, and real‑world case studies.

Data TypesJVMJava
0 likes · 8 min read
Why Storing Phone Numbers as Strings Beats Ints in Java
php中文网 Courses
php中文网 Courses
Feb 11, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function joins array elements into a string, demonstrates basic and advanced usage with examples—including handling sub‑arrays and omitting the separator—and highlights important considerations for effective string manipulation in backend development.

BackendPHPTutorial
0 likes · 4 min read
Using PHP implode() to Join Array Elements into a String
php中文网 Courses
php中文网 Courses
Jan 20, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains the PHP implode() function, detailing its syntax, parameters, and usage examples for joining array elements—including handling nested arrays and omitting delimiters—to efficiently convert arrays into strings in backend development.

BackendPHParray
0 likes · 6 min read
Using PHP implode() to Join Array Elements into a String
Raymond Ops
Raymond Ops
Jan 14, 2025 · Fundamentals

How to Generate Random 4‑Digit Numbers in Python with randint, randrange, and More

This article explains how to use Python's built‑in random module—specifically randint() and randrange()—to generate random four‑digit numbers, and also demonstrates alternative approaches using string.digits, choice(), and join(), complete with code snippets and sample outputs.

Pythoncoderandint
0 likes · 6 min read
How to Generate Random 4‑Digit Numbers in Python with randint, randrange, and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 10, 2025 · Backend Development

Java String Tricks: replace vs replaceAll, Integer Caching, BigDecimal Precision

This article explains the differences between replace and replaceAll, how Integer caching affects equality checks, why constructing BigDecimal with double can cause precision loss, the nuances of string concatenation, the distinction between isEmpty and isBlank, when to check for null in MyBatis mapper results, and the correct way to use indexOf in Java.

BigDecimalIntegerJava
0 likes · 13 min read
Java String Tricks: replace vs replaceAll, Integer Caching, BigDecimal Precision
php中文网 Courses
php中文网 Courses
Jan 9, 2025 · Backend Development

10 Essential PHP Functions to Boost Development Efficiency

This article introduces ten essential PHP built‑in functions—including array_map, array_filter, array_reduce, json_encode/decode, and string utilities—explaining their purpose and providing clear code examples to help developers write more concise and efficient backend code.

BackendFunctionsPHP
0 likes · 5 min read
10 Essential PHP Functions to Boost Development Efficiency
Lobster Programming
Lobster Programming
Dec 16, 2024 · Fundamentals

How Many Objects Does Java Create for Different String Initializations?

This article explains how Java creates objects for various String assignments—using new String("long"), a literal "long", or concatenated literals "lo" + "ng"—detailing when one or two objects are allocated based on the presence of the literal in the string constant pool.

Constant PoolJavaMemory Management
0 likes · 3 min read
How Many Objects Does Java Create for Different String Initializations?
php中文网 Courses
php中文网 Courses
Nov 25, 2024 · Backend Development

How to Use PHP trim() to Remove Whitespace and Specified Characters

This article explains the PHP trim() function, detailing its default behavior of removing whitespace from both ends of a string, how to use the optional character mask to strip specific characters, and provides clear code examples with expected output for each case.

BackendPHPTRIM
0 likes · 5 min read
How to Use PHP trim() to Remove Whitespace and Specified Characters
php中文网 Courses
php中文网 Courses
Nov 14, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, its syntax, and demonstrates three examples—simple replacement, multiple replacements using arrays, and character deletion—showing how to modify strings efficiently in backend development, including sample code and expected output for each case.

BackendPHPTutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
Java Tech Enthusiast
Java Tech Enthusiast
Oct 28, 2024 · Databases

Choosing Between int and string for Storing QQ Numbers

While storing early five‑ and six‑digit QQ IDs as int32 or int64 offers memory efficiency and fast queries, the later expansion to eleven‑digit numbers and potential inclusion of non‑numeric symbols makes a string representation preferable to ensure flexible, future‑proof handling of QQ numbers.

QQdata typedatabase
0 likes · 3 min read
Choosing Between int and string for Storing QQ Numbers
Selected Java Interview Questions
Selected Java Interview Questions
Sep 29, 2024 · Backend Development

Understanding Java String Length Limits and Compilation Constraints

This article explains the theoretical and practical limits of Java String length, covering compile‑time restrictions, UTF‑8 encoding effects, constant‑pool constraints, runtime constructor limits, memory consumption, and JDK 9 optimizations, with illustrative code examples.

BackendCompilerJVM
0 likes · 6 min read
Understanding Java String Length Limits and Compilation Constraints
Architecture Development Notes
Architecture Development Notes
May 16, 2024 · Fundamentals

Mastering Rust’s String: Creation, Modification, and Conversion

This article explains Rust’s owned `String` type, showing how to create strings, grow and modify them with various methods, and convert between `String` and `str` while highlighting ownership and borrowing concepts essential for safe memory management.

Memory ManagementOwnershipRust
0 likes · 5 min read
Mastering Rust’s String: Creation, Modification, and Conversion
php中文网 Courses
php中文网 Courses
May 9, 2024 · Backend Development

Using PHP's substr() Function for String Manipulation

This article explains how to use PHP's substr() function to extract portions of a string, covering its syntax, parameters, and practical examples including specifying start positions, lengths, and negative offsets for flexible substring extraction.

BackendPHPTutorial
0 likes · 4 min read
Using PHP's substr() Function for String Manipulation
IT Services Circle
IT Services Circle
May 3, 2024 · Fundamentals

Deep Dive into Java String: Memory Layout, Immutability, and Optimization Techniques

This article explores Java String internals across JDK versions, explaining its memory representation, immutability, substring behavior, and how techniques like StringBuilder, intern(), and shared objects can dramatically reduce memory usage from gigabytes to megabytes in high‑scale applications.

JavaMemory OptimizationStringBuilder
0 likes · 13 min read
Deep Dive into Java String: Memory Layout, Immutability, and Optimization Techniques