You may want to strip off the newline character ...
'''file "Questions101.txt" could look like this ...
Which animal has three hearts?
What is Captain Kirks middle name?
Which country has the most Dentists?
What type of organism causes malaria?
What was the first brand name for Bubble Gum?
Which game uses the phrase "en passant"?
What do you call one golf stroke over par?
An entomologist is a specialist in ....
An ornithologist studies ....
Who was never elected president or vicepresident?
Who was Langston Hughes?
Which is the most common word in the English language?
What was Paul Revere's occupation?
Where do you find more than one quarter of earth's forests?
In what country was bowling invented?
question_list = 
for question in open(fname):
# strip off new line character
question = question.rstrip()
return random.sample(question_list, 10)
# testing ...
filename = "Questions101.txt"
question_list = pick_ten(filename)
['Who was Langston Hughes?',
'What was the first brand name for Bubble Gum?',
'What type of organism causes malaria?',
'Which game uses the phrase "en passant"?',
'Which is the most common word in the English language?',
'An ornithologist studies ....',
'An entomologist is a specialist in ....',
'What do you call one golf stroke over par?',
"Where do you find more than one quarter of earth's forests?",
'Who was never elected president or vicepresident?']
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);