Print Map of India Java Program

By | June 9, 2016

Java Program To Print Map of India

Learn How To Write A Program To Print Map of India in Java Programming Language. This is an example of Obfuscated Coding in Java Programming. By nature, Obfuscated Coding is a little difficult to understand.

The String obfs is a Binary Sequence. It is interpreted as an Array of Characters. It is then converted into its corresponding ASCII values. The String obfs is a Run Length Encoding of the Map of India. It, therefore, contains Instructions to Draw the Image of India’s Map in Java Programming.

Java Code To Print Map of India with Obfuscated Coding Style

The charAt() method is defined in Java.lang package. This method returns the value of the character at the specified index. The number 33 in the second last System.out.println() method enables to print the Exclamation Mark to Draw the Map of India. This is because the ASCII value 33 represents Exclamation Symbol.


Code To Print Map of India in Java Programming

If you have any compilation errors or doubts in this Program To Print Map of India in Java Programming Language, let us know about in the Comment Section below.

Recommended Programs
Complete Guide For User Input in Java
Java Program To Download Any Webpage
Java Graphics Program To Draw A Circle
100+ Java Programs For Programming Interviews

9 thoughts on “Print Map of India Java Program

  1. Vijay kumar Yadav

    MY program has a problem. There is some problem with obfs string. It not compiling I guess.

    1. Tushar Soni Post author

      I’ve checked the program again. Its working perfectly fine Vijay. Ensure that the string obfs should not included any next lines between it. The String in the code to print map of India should be intact and should not include any uneccessary spaces.

  2. abhijeet

    StringIndexOutOfBoundsException occurs in main() and chartAt() not found..

  3. Tajinder Setia

    Why such a long string has been taken and can you explain how exactly programs print for India map at a particular location?

  4. Samriddhi Verma

    Can you explain how to come up with the obfs string to plot any map.


Let's Discuss