Skip to content

Instantly share code, notes, and snippets.

View rahul-rkt's full-sized avatar

Rahul Thakur rahul-rkt

View GitHub Profile
<mxfile
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
type="device"
>
<diagram>7RxZb5tK99dE3yLFYjPLY5ov7a3aK0WK1Ns+XRGD7VGx8YfJ0vvrewbOGQ8wdmiBIfH2YDgMs5xtzja+sK9Xzx+ycLP8M43i5MIyoucL+38XlhVM3YlrwwWH/ShhnulMHLeELTIWlVBzB7hj/8QINBD6wKJ4W2mYp2mSs00VOEvX63iWV2DzNKkOsQkX1P0OcDcLkyb0LxblyxLqWzhlDv8jZoslDWO6Qflkm/+gPqJ4Hj4k+WUBgmf88SqkvopV2TeAtixNoRt+tXq+jhOOOkJIufT3e56KSWbxGidy+AXfas4yjmDheLtO1/DzLksf1lHM3zHgbpmvErg04TJ+ZvlX6fobbzKZ8rt1nv3gj/gbxc3u2TYPs/wqy9Kn3RAF7D2D2dErEbW4T9LZ9xKEDfhw5bz5ZPeuHUHb9CGbYSsvmCKnhNkixna+VQARRR/idBXDfKFRFidhzh6rI4TIXQvRbodguEAc78N32cdjmDxgr9fvcSkSCfL4GaYmI3qernOUAMuhe3yBP3+Ms5wBt14lbLEG2IpFEX/4LkTADLASZwWis/S74OEdJnkPMQroPlw2MYQvIJsZKMx0+7STFNNA2FKSEgdhnVCKikRC6YXlJhx/DC4W/GLOFtDCnswmsIzyGXQrHrfAf4m16zRJAYfEs3Pgxhqoge69hHlasjy+24QFZz6BmgRYCq3nScH0S2gXwwt9UMdEFCF1HJR5mTqkU2XqEBW7UMfzvL3k2W7CdQXv7v8fuOJ7x9F/iZi84gq8RKZ4TnS7TUIGT4BWlhuuOALX91v+IxG5HITo/MLACVvHl4QCPrI54XMvXjXazurfL4x+P9zQX6WhYRidq/7P3
<mxfile
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
type="device"
>
<diagram>7V1bj+K4l/80Jc08FCLkBo9dvT0zUqul1tRq/zNPK6qgimgownLprtpPP8eJT4gvCQ6xHUPCCyQEk5zzs31ulzv/89v777v5dvUtXSzXd5Px4v3O/6+7yWQWRqPIhw/k3Ed+LvaCURDl5153ySI/651OPCb/v6Qnx/TsMVks98yFhzRdH5Ite/I53WyWzwfm3Eu6Zv9iO3/F4U8nHp/na/Hsf5LFYZWfnU7oLZPzfyyT1xX+jRfN8m/2hw8cY7F8mR/Xh/vsFHxHvn6b41jZU/lfgGy7NIVhyKe398/LNSEdEiR/9N8qvi1ucrfc0Bup/wG9iR/z9ZHe46cvj/feZCrc+89Vclg+bufP5PgncPXOf1gd3tZw5MHHl2S9/pyu0x0cb9INXPQg3gu9vR/L3WFJoZCdovf2+zJ9Wx52H3AJ/daPKKspSDyfHv88scCjjzhelcgf0nNzioTXYugTMeADpYecNqFAm+/rebKBWz/cTaL5G6HA5mlP3uB4Df/8sN/ONwzZov87ElY+rJPN8h5v8BNc4o1gbPwWPr2S919wHLi1fKj8PJ5+ajH2X6WxYRx24Jb3/WvlfXMgymjH4GZ/2KX/LDnkSMA0XyevGzh8BjAt4fwDAVEC0/MT/eItWSzI3zzIgJrC1S/r9CecWcF1S/iBDnh6AQfPgGKmDM+xBJ4I2TbwpAtPibrLBaxY9DDdHVbpa7qZr7+czj7s0uNmsSQDjFk2AA12H3/R89nB3+RgFGaHi0+7XUa8p3X6/E9+6jfgEf1xJSX36XGXseE0mw7z3esSqZCfIrddS+3dcj0/JD/YhbgN6bzAfdrpowr96fcU1q4TdoMph92QcgiHy
<mxfile
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
type="device"
>
<diagram>7V3fkuK20n+aqTrnYimM/+HLzO4mXypnq6YyVd9Jrk6xg2dwhcHEMNnZPH1attpYLZkRtiQMHm7Awsji161Wd6u7deN/fH79qVhsV1/yZbq+mU2Xrzf+p5vZLAmjSeTDB9b2vWqLZtNJMK/anopsWbV6h4b77O+UN05560u2THfCjfs8X++zrdj4kG826cNeaHvM1+Ijtosn7P7QcP+wWMut/82W+1XVOp9Fh/b/S7OnFT7Gi5Lqm93+O/axTB8XL+v9h7IJvmNfPy+wr/Jf+Z8BtiLPoRv26fn1Y7pm0CEg1V//seXbepBFuuEDOf4DPoi/FusXPsZPn++lcX9bZfv0frt4YNffgKI3/u1q/7yGKw8+Pmbr9cd8nRdwvck3cNMt7zYt9imnuWJoZRMf109p/pzui+9wC/+BH3EycwbxfH797QC/x//edNWAPuRtC84FT3XXByDgA8dCjUso4XK3XmQb+Df7m1m0eGYIbL7u2Btcr+HJt7vtYiPAFv35wsh4u8426Qcc4A9wizeBvvFb+PTE3v+F/cDQqq6qdmz+2qPv3xp9Qz9ixz3H/e/WcRMmKrET+Ga3L/I/UsI5CmZarLOnDVw+AOek0H7L+CqDqfkD/+I5Wy7ZY25VjJrD3Y/r/Bu0rOC+FH5ggj29gLBnwHmmyZ5TBXsiy/ZhTy50GuimS5BW/DIv9qv8Kd8s1p8PrbdF/rJZpqyDqUgG+MPF9994e3nxO7uYhOXl8oeiKMH7us4f/qiafgQa8R9XA2FPP44jDDZ/KUq6HKbXflE8pQiLGu0iXS/22V9i732g84KLw64HKvyndznIrgPvBnPCuyEnCHZR0Yr/qrl8kI4iZ
package me.rahulthakur;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
class Main {
private static final char[] ciphertext = "OTWEWNGWCBPQABIZVQAPMLJGZWTTQVOBQUMAPMIDGZCABEQVBMZLZIXMLAXZQVOQVLMMXAVWEIVLLIZSNZWABJQZLWNLMTQOPBVIUMLGWCBPAEQNBTGTMNBBPMVMABITIAKWCTLVBBQUMQBEPQTMQBEIAQVUGBZCAB".toCharArray();
@rahul-rkt
rahul-rkt / NewJava.java
Created June 7, 2012 20:06
New way of reading files in Java 1.6
package test.file.reading;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class NewJava {
public static void main(String[] args) throws IOException {
@rahul-rkt
rahul-rkt / TraditionalJava.java
Created June 7, 2012 20:03
Traditional way of reading files in Java
package test.file.reading;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class TraditionalJava {
public static void main(String[] args) throws IOException {