Question: medium Time left: Unlimited time Java Vim Mode Light Mode Reset Code String Scramble import java.util.*; import java.io.*; 1 2 3 4 5 class Main

 medium Time left: Unlimited time Java Vim Mode Light Mode Reset

medium Time left: Unlimited time Java Vim Mode Light Mode Reset Code String Scramble import java.util.*; import java.io.*; 1 2 3 4 5 class Main { Have the function StringScramble (strl, str2) take both parameters being passed and return the string true if a portion of strl characters can be rearranged to match str2, otherwise return the string false. For example: if strl is "rkqodlw" and str2 is "world the output should return true. Punctuation and symbols will not be entered with the parameters. public static String StringScramble(String stri, String str2) { // code goes here return stri; } 6 7 8 9 10 11 12 13 14 15 16 17 public static void main (String[] args) { // keep this function call here Scanner s = new Scanner(System.in); System.out.print(StringScramble(s.nextLine()); } Examples } Input: "cdore" & str2- "coder" Output: true Input: "h3llko" & str2 = "hello" Output: false Browse Resources powered by Google Search for any help or documentation you might need for this problem. For example: array indexing, Ruby hash tables, etc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!