Skip to content

Java Program to Print Hindi Language Character

This is code is to Print Hind Language Character on screen.
This code is Shared by Mr. Deepak Gupta.
It is made using loop, the loop start at 2309 to 2362 which includes all Hindi Character.
It use Unicode encoding which includes all human readable language, if you increase the number you will see other character.

Code:
// Java Program to Print Hindi Language Character

public class k_kha
{
public static void main()
    {
    char c;
    }
for(c=2309;c<2360;c++)
{
  System.out.print(” “+c);
}System.out.print();
}

Sample Output:

Comment bello for your Query and Feedback 🙂

5 thoughts on “Java Program to Print Hindi Language Character”

  1. I used this code, but i didnt get the ouput. I got question marks instead of hindi characters. Is there any pre-steps need to be taken to get the output?

  2. Here is solution for this problem
    1) You can save your file in UTF-8 or UTF-16 and you will start see characters
    2) even if you are not able to then you can copy some hindi char and put as string and try to print syso it will ask you to save your file as UTF-8 and onwards your program will start display hindi characters instead of ???? marks

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!