About 563,000 results
Open links in new tab
  1. Java Program to Print the ASCII Value - GeeksforGeeks

    May 24, 2024 · Steps to Print the ASCII Value are mentioned below: Initializing the character as a string. Creating an array of type byte by using getBytes() method. Printing the element at '0'th …

  2. Get the ASCII Value of a Character in Java - Baeldung

    Feb 6, 2025 · To get the ASCII value of a character, we can simply cast our char as an int: char c = 'a'; System.out.println((int) c); And here is the output: 97. Remember that char in Java can …

  3. Convert character to ASCII numeric value in java - Stack Overflow

    May 9, 2013 · If you want the numeric value so you can convert the Java String to an ASCII string, the real question is "how do I encode a Java String as ASCII". For that, use the object …

  4. Java Program to Find ASCII Value of a character

    In this program, you'll learn to find and display the ASCII value of a character in Java. This is done using type-casting and normal variable assignment operations.

  5. How to Print ASCII Value in Java - Tpoint Tech

    Mar 17, 2025 · There are two ways to print ASCII value in Java: Assigning a Variable to the int Variable; Using Type-Casting; Assigning a Variable to the int Variable. To print the ASCII …

  6. How to Get the ASCII Value of a Character in Java? - JavaBeat

    Feb 28, 2024 · To get the ASCII value of a char in Java, you can use different approaches such as the Format class, type casting, or brute force method, etc as shown in this guide. This …

  7. Java Program to find ASCII values of String Characters - Tutorial …

    Write a Java Program to find ASCII values of String Characters with an example. In this example, we used the String codePointAt function to return the character’s ASCII code. private static …

  8. Char to ASCII and ASCII to char conversion in Java

    Nov 1, 2023 · To get the corresponding character from the ASCII value in Java, we can use the Character.toChars(int) method. This method converts the specified char to its UTF-16 …

  9. Java: Find ASCII Value of Character - Java Guides

    Finding the ASCII value of a character in Java is a straightforward task. This guide will cover different ways to find the ASCII value of a character, including using casting, the char to int …

  10. Print ASCII Value of a Particular Character in Java

    Learn how to print the ASCII value of a particular character in Java with this simple guide and example code.

  11. Some results have been removed
Refresh