Re: New File with a Directory
- From: Alan <jalanthomas@xxxxxxxxxxx>
- Date: Sun, 30 Dec 2007 15:09:16 -0800 (PST)
Mark,
Thank you. If I replace
File file = new File(infile.getName());
with
File file = new File(infile.getPath());
in the "methodWithNew" method, then it works.
So, I guess the bottom line is that I can just set a File object
to the input File object, without needing to use the "new" operator.
When I do that (no "new"), am I just making the new File object in
the method point to the input File object? This sounds OK to me.
Thanks, Alan
.
- Follow-Ups:
- Re: New File with a Directory
- From: Lew
- Re: New File with a Directory
- References:
- New File with a Directory
- From: Alan
- Re: New File with a Directory
- From: Mark Thornton
- Re: New File with a Directory
- From: Lew
- Re: New File with a Directory
- From: Mark Thornton
- New File with a Directory
- Prev by Date: java data grid
- Next by Date: can't call super from method but I need to??
- Previous by thread: Re: New File with a Directory
- Next by thread: Re: New File with a Directory
- Index(es):