David Simkulette wrote:Alternatively you could read it in parts and call System.out.print(shorterString) or System.out.println(shorterString) in a loop.
Eric Banks wrote:Ok, I'm trying to determine which one should use nextLine:
guess = userInput.next();
String input = userInput.next();
From this comment:
"You are comparing a String to a File. The String is ok but you'll need to get the file name from the File."
I'm not sure what I need to do to fix thisl
Eric Banks wrote:It works, but it's displaying the full path to the file instead of just the name of the file.
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Create Edit Print & Convert PDF Using Free API with Javahttps://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire