Transposition Cipher (Java)

import java.util.*;
class TransCipher
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println(“Enter the plain text”);
String pl=sc.nextLine();
String demo=””;
String s=””;
int start=0;
for(int i=0;i<pl.length();i++)
{
if(pl.charAt(i)==’ ‘)
{
s=s+pl.substring(start,i);
start=i+1;
}
} Continue reading “Transposition Cipher (Java)”