public class Java_Break_Statement { public static void main (String args[]) { String str[] = {" * ", " * ", " * ","roseindia", ".net"}; boolean rachel = false; int weisz; String strv = "roseindia"; for (weisz = 0; weisz < str.length; weisz++) { if(str[weisz] == strv) { rachel = true; break; } System.out.print("!*"); } System.out.print("!"); if(rachel) System.out.println("\nCompany " + strv + " discovered in string dimension at index : " + weisz); else System.out.println("Company " + strv + " undiscovered"); } }