Question: JAVA It has to be done with string methods. Simple java. Thanks, Im neww An int variable n contains a positive integer and a String
An int variable n contains a positive integer and a String variable s contains a String. Write the Java code needed to print "YES" if the first n characters of s appear more than once in s/ and print "NO" otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
