About 1,940,000 results
Open links in new tab
  1. Java Strings - GeeksforGeeks

    Mar 28, 2026 · A String in Java is an object used to store a sequence of characters enclosed in double quotes. It uses UTF-16 encoding and provides methods for handling text data. Each character in a …

  2. Java Strings - W3Schools

    A String in Java is actually an object, which means it contains methods that can perform certain operations on strings. For example, you can find the length of a string with the length() method:

  3. Java - Write to File | Baeldung

    Dec 1, 2023 · In this tutorial, we’ll explore different ways to write to a file using Java. We’ll make use of BufferedWriter, PrintWriter, FileOutputStream, DataOutputStream, RandomAccessFile, FileChannel, …

  4. Reverse a String in Java - GeeksforGeeks

    Oct 14, 2025 · In Java, reversing a string means rearranging its characters from last to first. It’s a common programming task used in algorithms, data processing, and interviews. There are several …

  5. Java String Methods - GeeksforGeeks

    Oct 11, 2025 · In Java, a String represents a sequence of characters used for storing and manipulating text. It is immutable and provides many built-in methods for operations like concatenation, …

  6. String Class in Java - GeeksforGeeks

    Nov 12, 2025 · String is a predefined final class in Java present in java.lang package. It provides various methods to create, manipulate, and compare strings, like length (), charAt (), concat (), equals (), etc.

  7. java - How do I create a file and write to it? - Stack Overflow

    Java NIO If you already have the content you want to write to the file (and not generated on the fly), the java.nio.file.Files addition in Java 7 as part of Java NIO provides the simplest and most efficient way …

  8. テキストをファイルに書き込む - テキストファイルの入出力 - Java入門

    "write"メソッドを使います。 "write"メソッドは書き込む値として文字コードを使ったり、文字列を指定したりといくつか用意されているのですが、ここでは文字列を書き込むメソッドを見てみます。 …

  9. Java StringWriter Class - Complete Tutorial with Examples - ZetCode

    Apr 16, 2025 · Complete Java StringWriter class tutorial covering all methods with examples. Learn about string-based output operations in Java I/O.

  10. Java Program to Write into a File - GeeksforGeeks

    Jul 23, 2025 · FileWriter class in Java is used to write character-oriented data to a file as this class is character-oriented because it is used in file handling in Java. There are many ways to write into a file …