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

    Jul 23, 2025 · 1. Brute-force Method To find the ASCII value of a character, simply assign the character to a new variable of integer type. Java automatically stores the ASCII value of that character inside …

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

  3. Java Program to Find ASCII Value of a character - PREP INSTA

    To find the ASCII value of a character in Java, you can use the (int) type cast operator along with the charAt() method of the String class.

  4. Writing Java Code to Find ASCII Value of a Character

    In this full program, a character is taken as an input from a user and findAsciiValue function is used to return the ASCII value of the input character. Conclusion In this guide, you've taken a step-by-step …

  5. Java Program to Find ASCII Value of a character

    Jun 9, 2023 · Discover a simple Java program to find the ASCII value of a character, gaining insights into character encoding and enhancing your skills.

  6. Program to find ASCII value for a character in JAVA

    Aug 14, 2024 · Method 1.1 - Using Type-Casting Method with User Input This method allows the user to input a character and find its ASCII value.

  7. Convert character to ASCII numeric value in java

    May 9, 2013 · ASCII? Are you sure that's what you want? Java uses the UTF-16 character encoding of the Unicode character set (just like JavaScript, .NET, VBA, VB4/5/6, NCHAR, NVARCHAR, NTFS, …

  8. Java Program to Find ASCII Value of a Character - BTech Geeks

    Feb 22, 2024 · By Assigning Character to an Integer Variable Method-1: Java Program to Find ASCII Value of a Character By Using TypeCasting Approach: Declare a character variable c. Prompt the …

  9. Find ASCII value of a Character in Java - CodeVsColor

    The advantage of typecasting is that you don’t need to create another integer variable. Example 2: How to find the ASCII value of any user-input character: The following program takes one character as …

  10. Java Program to Find ASCII Value of a Character - W3Schools

    The above Java program shows two ways to print the ASCII value of a character: First, a character is defined using single quotes and assigned to an integer; In this way, Java automatically converts the …