This is my first time posting here, so please tell me if I need to correct anything in this post. I\'d like to ask for help with something that\'s been giving me some trouble.
Your program as it is is returning true if any character in your word variable is contained in your randomString variable. Judging from your comments it sounds like you want to check if every character from your word string is contained within your randomString variable. Here is a slightly different approach.
public static boolean Checkword(){
String randomString = "BFEABLDEG";
String word = "LABEL";
for(int i=0;i
This is quite inefficient since it has to create a new string each time, if you want to make it a little better, use a string builder to mutate the string to remove the characters as they are found.