Package utils

Examples of utils.Dictionary


    // { 'H', 'N' }, { 'R', 'S' }, { 'X', 'H' }, { 'L', 'H' },
    // { 'B', 'D' }, { 'Z', 'L' }, { 'D', 'C' }, { 'T', 'U' },
    // { 'A', 'M' }, { 'Q', 'W' }, { 'P', 'F' }, { 'E', 'G' },
    // { 'J', 'Y' }, { 'V', 'P' }, { 'G', 'B' }, { 'M', 'V' },
    // { 'K', 'K' }, { 'I', 'J' } });
    Dictionary dict = new OneOneDictionary(new char[][] {{ 'U', 't' },
        { 'L', 'h' }, { 'O', 'i' }, { 'Y', 's' }, { 'S', 'e' },
        { 'X', 'a' }, { 'V', 'g' }, { 'H', 'n' }, { 'Q', 'm' },{ 'M', 'x' },{ 'W', 'o' },
        { 'P', 'f' },
        { 'A', 'p' }, { 'E', 'l' } , { 'B', 'c' }, { 'R', 'r' }, { 'T', 'y' },
        { 'D', 'd' }, { 'Z', 'u' }, { 'K', 'v' }, { 'J', 'b' },
        { 'I', 'k' }, { 'G', 'w' }});
    PrintWriter pw = new PrintWriter(new FileOutputStream("output"));
    for (int l = 0; l < sb.length(); l++) {
      pw.write(dict.lookup(sb.charAt(l)));
    }
    pw.close();

  }
View Full Code Here

TOP

Related Classes of utils.Dictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.