Yes there is. At least, a pre-Win10 Windows operating system had a file name path of 4k characters. You're not anywhere close to that so you'll have to look elsewhere for the problem.
Pete Letkeman wrote:Is there a limitation as to how long a directory name can be according to Java?
The OP posted a screen snapshot of his file being displayed. In this case we're talking about fixed width.
Tim Moores wrote:
unless we're talking about a fixed width font, which .txt files usually are.
That is a feature of the viewer application. The file itself -which is being created here- can't do anything about that.
True, unless we're talking about a fixed width font, which .txt files usually are.
Tim Moores wrote:Text files have no formatting. You could add spaces in front of the title to move it right, but whether that moves it exactly into the center depends on the font type, the font size, and the page size. It'll likely not come out the way you want it to, so you may be better off focusing on something else.
Campbell Ritchie wrote:You are going to have to create fields with those names, even though I think they are poor names. They are difficult to read out and they do no t make it clear what they mean. Be sure to use exactly the spelling you have been given.
Maurizio Gasparro wrote:. . . do: create fields: aptTenName; aptNum; monRent; terOfLease;
Call a getData() method three times. Within the method, prompt a user for values for each field for a Lease , and return a Lease object to the main() method where it is assigned to one of main() ’s Lease objects.