Question: After executing the code on the right what will be the content of pos? String s1 = Java is Fun; int pos = $1.indexOf(Fun)
After executing the code on the right what will be the content of pos? String s1 = "Java is Fun"; int pos = $1.indexOf("Fun")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
