About 9,440 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. How to convert String or char to ASCII values in Java - Blogger

    Aug 7, 2021 · Here is our Java program, which combines all the ways we have seen to convert String and character to their respective ASCII values. You can also use the same technique to …

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

    Feb 6, 2025 · Simply put, we can convert an ASCII value to its equivalent char by casting: int value = 65; char c = (char) value; System.out.println(c); Here’s the output of the code: A …

  5. Convert String to ASCII Java - Know Program

    String To ASCII Java using String.getBytes () In Java, the String class contains the getBytes () method which encodes given String into a sequence of bytes using the named charset, storing …

  6. Java Program to find ASCII values of String Characters

    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.

  7. How to Convert Character to ASCII Numeric Value in Java

    Feb 2, 2024 · This article will discover the easiest and effective methods to convert a given character into an ASCII numeric value in Java with examples. Cast char to int to Convert a …

  8. Java – Convert Character to ASCII - Mkyong.com

    Dec 1, 2009 · This article shows you how to convert Character to an ASCII value. In Java, we can cast char to int to get the ASCII value.

  9. How to cast string to ascii value in java? - Stack Overflow

    Nov 3, 2014 · How do you want your strings converted to numbers? Give us some examples of how you expect this to work. Each character in a Java String is a 16-bit unsigned UTF-16 …

  10. How to Convert a Java String to ASCII Encoding

    Learn how to easily convert a Java String to ASCII encoding with step-by-step instructions and code examples.

  11. Some results have been removed
Refresh