What is wrong with the following code snippet? String [ ] data = { abc, def, ghi,
Fantastic news! We've Found the answer you've been seeking!
Question:
What is wrong with the following code snippet?
String data "abc", "def", "ghi", jkl;
String searchedValue "ghi";
int pos ;
boolean found false;
while pos data.length
if dataposequalssearchedValue
found true;
else
found false;
pos;
if found
System.out.printlnFound at position: pos;
else
System.out.printlnNot found";
Related Book For
Posted Date: