fork(3) download
  1. class Comment {
  2.  
  3. public static void main(String[] args) {
  4. String s = "V qba'g haqrefgnaq ubj guvf xvaq bs negvpyrf pna or choyvfurq ba QMbar.\nQMbar vf orpbzvat gur arj Cnfgrova...";
  5. for (char c : s.toCharArray()) {
  6. if ((c >= 'a' && c <= 'm') || (c >= 'A' && c <= 'M')) {
  7. c += 13;
  8. } else if ((c >= 'n' && c <= 'z') || (c >= 'N' && c <= 'Z')) {
  9. c -= 13;
  10. }
  11. System.out.print(c);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
I don't understand how this kind of articles can be published on DZone.
DZone is becoming the new Pastebin...