Question: Write a program called Nuke2.java containing a class called Nuke2 whose main method reads a string from the keyboard and prints the same string, with
Write a program called "Nuke2.java" containing a class called Nuke2 whose main method reads a string from the keyboard and prints the same string, with its second character removed. (Thats character number 1, since Java numbers characters in a string starting from zero.) In other words, after you run "java Nuke2", if you type in the string "skin", the program will print "sin".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
