Question: Write a java program that generates random string called str of 10 characters from the English alphabet (lower and upper case, without repeated letters)

Write a java program that generates random string called str of 10 characters from the English alphabet

Write a java program that generates random string called str of 10 characters from the English alphabet (lower and upper case, without repeated letters) and then find the index of longest sequence of characters from str that is also a substring in your First Name called matchStr with ignore case. The program should display: 1) The string str. 2) Your first name 3) Index Of The longest sequence matchStr in str. Example: Suppose the generated random String is "vbcedAhmox" Name is "Ahmad" Output: Str= "vbcedAhmox" Name = "Ahmad" Index = 5 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

java public class MatchString public static void mainString args Declare the size of random string as 10 int n 10 Declare a variable to store the rand... View full answer

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 Computer Network Questions!