Tag: 21209

Given a String variable named line1, write a sequence of statements that use a Scanner to read the first line of a file named “poem” and stores i in line1. (Do not concern yourself with any possible exceptions here– assume they are handled elsewhere.)

Given a String variable named line1, write a sequence of statements that use a Scanner to read the first line of a file named “poem” and stores i in line1. (Do not concern yourself with any possible exceptions here– assume  they are handled elsewhere.)

LANGUAGE: JAVA CHALLENGE: Given a String variable named line1, write a sequence of statements that use a Scanner to read the first line of a file named “poem” and stores i in line1. (Do not concern yourself with any possible exceptions here– assume they are handled elsewhere.)

Read More