while(inCount <= 12){ // 12 is the variable that controls the growth of the Arraylist
listArrays.add(Arrays.asList(inCount + 0.1));
System.out.println("Current element in list Arrays: " + inCount +" "+ listArrays.get(inCount) + "\n");
//int count=listArrays.size();
boolean found = false;
String comString = listArrays.get(inCount).toString();
comString = comString.substring(1, comString.length() - 1);
System.out.print("This is the comString: " + comString.toString() + "\n");
if(comString.toString() == "7.1"){found = true;
if(found){
System.out.println("Bingo! You found it); " + listArrays.get(inCount) + "\n");
continue;
}
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.