Menu
Question Index
...

Write a program to encrypt the word using the given mapping strings. For e.g., if POTATO is MXNYNX, what will be TOP?

Input (String, String, String) Output (String)
POTATO, MXNYNX, TOP NXM
BANANA, ZYXYXY, ABN YZX
MOON, DIIL, MON DIL
KARNATAKA, PQSVQUQPQ, KARAN PQSQV
YEAR, ABCD, RARE DCDB


import java.util.*;

class EncryptWord
{
    public static void main(String s[])
    {
        System.out.println("When TOP is encrypted using the mapping of POTATO and MXNYNX, it will be : " + encryptWord("POTATO", "MXNYNX", "TOP"));

    }


    public static String encryptWord(String actualString, String codeString, String input) {
    }

}

Doubts

Problems

Topic: Java HashMap Implementation

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App