Topics

Java String

About this topic: Articles tagged __TAG__

Showing 103 articles

Topics

Articles

Showing 103 articles

How-tos How to Convert a String to Char in Java Learn when to use Java's charAt() for one UTF-16 code unit or toCharArray() for a full string, how indexing works, and why getBytes() encodes bytes rather than converting a string … How-tos How to Convert Enum to String in Java Learn how Java enum constants become strings with name(), toString(), custom display text, and values(). How-tos How to Convert String to Int Array in Java This article introduces methods to convert String to int array in Java. How-tos How to Escape Characters in Java This article explains the common escape sequences in Java How-tos Trim() vs Strip() in Java This tutorial demonstrates the differences between trim() and strip() methods in Java. How-tos How to Check if a Variable Is String in JavaScript Learn how to check whether a JavaScript value is a primitive string, when String objects behave differently, and what alternative checks can and cannot tell you. How-tos How to Convert an Arraylist to a String in Java Learn how to convert an ArrayList to a String in Java with a chosen delimiter or a bracketed representation. How-tos How to Convert String to JSON Object in Java This tutorial explains how to convert a string into a json object in java How-tos How to Ignore Upper Case and Lower Case in Java This article introduces how to ignore upper case and lower case in Java. How-tos How to Convert Boolean to String in Java This tutorial teaches how to convert a boolean value to a string in Java. Explore various methods including String.valueOf(), Boolean.toString(), string concatenation, and … How-tos How to Replace Multiple Characters in String in Java This article explains replaceAll, replace, and replaceFirst methods that can be used to replace multiple characters in a string. How-tos How to Convert an Integer to a String in Java This article provides a comprehensive guide on how to convert an integer to a string in Java. Explore various methods such as String.valueOf(), Integer.toString(), string … How-tos How to Print Quotation Marks in Java This tutorial introduces the steps to print quotation marks in Java with explained examples. Learn how to use escape sequences, single quotes, string concatenation, and … How-tos How to Convert String Array Into Int Array in Java This article discusses how to convert a string array to an int array in Java. Explore various methods including traditional loops, the Stream API, and utility methods. Learn how to … How-tos String Pool in Java This tutorial explores the String Pool in Java, a key feature for memory management and performance optimization. Learn how to use string literals and the intern() method … How-tos How to Perform String to String Array Conversion in Java This tutorial provides a comprehensive guide on how to perform string to string array conversion in Java. Learn multiple approaches including the split() method, string array … How-tos How to Convert a Char to a String in Java This article explores how to convert a char to a String in Java, detailing various methods like String.valueOf(), Character.toString(), string concatenation, and the String … How-tos How to Check if a String Is Empty or Null in Java This article explores how to check if a string is empty or null in Java, providing practical methods and examples. Learn about the differences between empty and null strings, and … How-tos Comparison Between string.equals() vs == in Java This article introduces the differences between string.equals() and == in Java, explaining their unique functionalities and when to use each method. Learn how to effectively … How-tos How to Replace a Backslash With a Double Backslash in Java This article introduces how to replace a backslash with a double backslash in Java, covering methods like String.replace(), String.replaceAll(), and StringBuilder. Learn effective … How-tos How to Repeat a String in Java This article explores various simple approaches to repeating a string in Java. Discover how to use loops, StringBuilder, and the String.repeat() method for efficient string … How-tos How to Convert String to Date in Java Learn how to convert a string to a date in Java using various methods like SimpleDateFormat and LocalDate. This comprehensive guide offers code examples and detailed explanations … How-tos How to Convert Byte Array to String in Java Learn how to convert a byte array to a String in Java with our comprehensive guide. Explore various methods, including using the String constructor, getBytes method, and … How-tos How to Declare a Constant String in Java This tutorial demonstrates how to declare a constant string in Java.

← All topics