Print Map of India Java Program

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.


Output

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

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

6 thoughts on “Print Map of India Java Program

  • July 31, 2016 at 2:38 pm
    Permalink

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

    Reply
    • July 31, 2016 at 7:03 pm
      Permalink

      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.

      Reply
      • August 15, 2016 at 5:55 pm
        Permalink

        Yes. Its been solved. Thanks

        Reply
  • August 15, 2016 at 1:12 pm
    Permalink

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

    Reply
    • August 15, 2016 at 5:55 pm
      Permalink

      It’s working fine here! Please check the import file.

      Reply
  • August 16, 2016 at 12:14 am
    Permalink

    Can you Explain the flow of this program

    Reply

Join The Discussion