fork download
  1. class Ideone
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. String paragraph = "bv xfeu xeelppuq vx t eupvtbf obfc, vktv bi ku twztds ofuz vku pbckv vbnu vx hucbf uaupdvkbfc; bi ku ofuz zkx zupu vku pbckv juxjwu vx wbsvuf vx, tfq zkxn vx taxbq; tfq, thxau tww, bi ku twztds ofuz zktv zts vku nxsv bnjxpvtfv vkbfc vx qx, ku zxlwq fuaup itbw bf tfdvkbfc ku nbckv lfqupvtou.";
  6.  
  7. String s1 = "etaonrishdlfcmugypwbvkjxqz";
  8. String s2 = "uvxftkbsqpznlcwdeijhoamgyr";
  9. for (int x = 0; x < 26; x++) {
  10. paragraph = paragraph.replace(s1.charAt(x), s2.charAt(x));
  11. }
  12. System.out.println(paragraph);
  13. }
  14. }
  15.  
Success #stdin #stdout 0.11s 320576KB
stdin
Standard input is empty
stdout
ho gnmm gmmriimy og o mmioohn nhnl, oaoo hh am omrois nnmr oam ihlao ohtm og ymlhn mgmiioahnl; hh am nnmr rag rmim oam ihlao mmgmmm og mhsomn og, ony ragt og ogghy; ony, oyggm omm, hh am omrois nnmr raoo ros oam tgso htmgioono oahnl og yg, am rgrmy nmgmi hohm hn onioahnl am thlao rnymioonm.