How to count characters from a set of variables in Java?How to count characters from a set of variables in Java?

0 Comments

In the below code, I generate a set or array of random variables and then I am counting every individual character so in through this program we can identify the occurrence of each character. To generate Random numbers we will use a random library of Java to generate random alphabets


Implement Caesar Cipher in Java?Implement Caesar Cipher in Java?

0 Comments

In cryptography, a Caesar cipher, also known as Caesar’s cipher, the shift cipher, Caesar’s code or Caesar shift, is one of the simplest and most widely known encryption techniques. Lets implement this; //First we take input of word Scanner input = new Scanner (System.in); System.out.println("Enter Word"); String word=input.nextLine(); //Then we take input for steps  or we can say that