Question: starter code also bonus : how will this code solve the problem in 30 or more words IPaeesh le pemu mnxit ehess rtnisg! Oh sorry,
starter code "IPaeesh le pemu mnxit ehess rtnisg!" Oh sorry, that was supposed to say: "Please help me unmix these strings!" Somehow, all of my strings have been mixed up; every pair of characters have been swapped. Help me undo this by creating a function named unmixMyString that will receive a single String as a parameter. Unmix the String by creating and returning a new String that contains each of the original characters, but with every pair of characters swapped. Header: String unmixMyString( String word) \{ // Type code here Examples: - Input: "123456" Output: "214365" - Input: "hTsill s aimex dpus rtni.g" Output: "This is a mixed up string." - Input: "bodce" Output: "nabcde Note: - The length of a string may be odd. In that case, the last character remains the last character (since there is nothing to swap it with). - Use the substring or charAt method For Muitiple Files, Custom Library and File Read/Write, use our new - Advanced Java lDE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
