• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IO application

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 me..as I am not getting help through my class.

Thanks!
Casey
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 : http://java.sun.com/docs/books/tutorial/getStarted/index.html
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
one minute late
 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
go to sun.com

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


Justin
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic