Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is my code. Can anybody help me that when I run this and the output wont have double space . Thank you so much
This is my code. Can anybody help me that when I run this and the output wont have double space . Thank you so much
Settings Iools Window Help import java.util.Scanner; public class Encryption public static void main (String args) Scanner get = new Scanner (System.in); String sentence; System.out.print ("Enter a sentence to ROT13: ") sentence = get.nextLine(); System.out.println(" ORIG: "sentence) System.out.print( "ROT13:"); int numChars sentence.length); int charac = 0; int pos0; while (numChars!- pos) switch (sentence.charAt (pos)) case 'a case A" charac++ System.out.print("N"); break; case 'b': case 'B charac++ Compile Messages jGRASP Messages Run I/O Interactions jGRASP exec: java Encryption End Clear Help Enter a sentence to ROT13: meet me in the northern courtyard ORIG: meet me in the northern courtyard ROT13: ZRRGZR VAGURA BEGURE APBHEG LNEQ jGRASP: operation complete. Line:132 Col:13 Code:83 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started