Java Programming IT105 STI College Q&A Laboratory 6A
Java Programming IT105 STI College Q&A Laboratory 6A
Q&A Laboratory 6A
Objective:
Software Requirements:
Procedure:
CODES:
package labexer6a;
import java.util.*;
import java.io.*;
else{
phrase.append(words[value].charAt(i));
}
}
while (!phraseSolution.equals(phrase.toString())) {
if (check) {
int spot = placeLocator(guess, phraseSolution);
phrase.setCharAt(spot, guess);
System.out.println(phrase);
System.out.println("Correct! Enter another Letter you suspect is in the phrase");
}
else{
System.out.println("Sorry! This letter is not in the phrase please guess another!");
}
}
place = x;
return place;
}
else{
validation = true;
letter++;
}
}
return validation;
}
}
OUTPUTS: