File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes IO application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "IO application" Watch "IO application" New topic

IO application

Casey Voss

Joined: Oct 31, 2006
Posts: 1
I am totally new to Java and I am wondering if someone could help me by giving me a example of a java file that displays your name and maybe 2 other bits of information. Then have the application show the file name, parent, size and time of last modification.

My teacher would like everyone to give an example of this and I am totally lost. Sure would appreciate it if someone could explain this to I am not getting help through my class.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Hi, Welcome to the ranch.
I think you should read the Naming Policy first, and change your name accordingly

Thank you.

If you want to start in Java, maybe you could try to read an HelloWorld intro here :

[My Blog]
All roads lead to JavaRanch
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

one minute late
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
go to

go under developers...

then api/docs...

click on jdk1.5.0

and then in the 'all classes' scroll box

find "File"

and then look at the different methods for that class...

you should find what you need there


You down with OOP? Yeah you know me!
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

what do you know how to do? we really don't hand out homework answers here, but we'll bend over backwards helping you do it.

can you write the basic "Hello, World!" application? do you know how to compile and execute a program? do you have a Java environment on your machine?

What have you tried? where are you stuck?

answer these qeustions, and we'll help you move forwards. But nobody is going to just hand you the code. And if they do, I or one of the other moderators is probably going to remove it as soon as we find it. We want you to LEARN java, so you can be a good programmer. we don't want you to pass the assignment, and the class, by getting the code from someone else.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: IO application
It's not a secret anymore!