Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2006

Tip: Looking for answers? Try searching our database.

NEED YOUR HELP

Thread view: 
Alaa - 27 Nov 2006 18:43 GMT
Hi
This is the first time I joined a groub abd I am happy & comfortable
that I started with you.
In fact I need your help in my java course project >> & this is the
discribtion about it

Problem: The Talking Photo Album (TPA)
You are asked to simulate the flipping of pages of a photo album with a
program called TPA, the Talking Album Photo. Once TPA is started, it
should allow you to enter the name of the folder where the pictures you
want to view reside. (Bonus, you could also allow to browse to reach
this folder.) TPA then loads all the photos that exist in that folder.

as  a starting I need to know the exact code in java language that
helps me to read the content of a .txt file.
and after that, I will ask my next question.

please replay to as soon as possible ... & thanks alot

Regards :)
Jason Stine - 27 Nov 2006 20:56 GMT
> Hi
> This is the first time I joined a groub abd I am happy & comfortable
[quoted text clipped - 16 lines]
>
> Regards :)

I've always used the Scanner class to read text files:
Scanner file = new Scanner(File file);
or something like that... it's been a while. Anyway I know this class
exists - look it up in the API for all the methods.
Alaa - 28 Nov 2006 09:13 GMT
> > Hi
> > This is the first time I joined a groub abd I am happy & comfortable
[quoted text clipped - 21 lines]
> or something like that... it's been a while. Anyway I know this class
> exists - look it up in the API for all the methods.

Thanks alot for your help, but how I can look it up in the API for all
the methods?

Reply ?     Rate this post:  Text for clearing space
Andrew Thompson - 28 Nov 2006 09:25 GMT
..
> Thanks alot for your help, but how I can look it up in the API for all
> the methods?

Which part is unclear?
API is a short name people use for the
JavaDocs relating to the  Java core
Application Programmer Interface.

You can find it online here..
<http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html>
..or at least, that's the 'overview', if you
are feeling brave and have broadband,
follow the link to 'frames'.

The JavaDocs can also be downloaded..

The Scanner class will be in the list down
the lower left frame of the 'frames' version.

Methods?  ..etcetera.   .....

We cannot know what to answer, unless you
make it clear what you do not understand.
(And if it is 'all of it' - try starting with a specific question
about the *first* word or term you do not know..
like "What does 'API' mean?"

Andrew T.
Jeff - 28 Nov 2006 11:33 GMT
> > > Hi
> > > This is the first time I joined a groub abd I am happy & comfortable
[quoted text clipped - 26 lines]
>
> Reply »     Rate this post:  Text for clearing space

What I typically do is a google search on the class, with the search
specifying Java as the first term. The API is usually in the first 3
links. So, for example, in Google enter Java Scanner as the search
term, and the first link is the api with all the methods. I find this
easier than trying to navigate the index on java.sun.com or downloading
the entire api, but to each his/her own.
Andrew Thompson - 28 Nov 2006 12:38 GMT
..
> > > > ..read the content of a .txt file.
...
> > > I've always used the Scanner class to read text files:
..
> > ...how I can look it up in the API ..
..
> What I typically do is a google search on the class, with the search
> specifying Java as the first term.

Huh!  Neat trick &..

>...I find this
> easier than trying to navigate the index on java.sun.com

..very true.  I dare not approach the full 'frames' version of
the online JavaDocs, but then, I am usually knowing what
class I need, and where it is, so the 'overview' page is
enough for me to 'click my way' through to the class.
(Your google approach sounds quicker though, especially
for someone like me who has 'Google search' for a homepage!)

>....or downloading
> the entire api, but to each his/her own.

I prefer a 'local' version of the JDocs for my own
personal browsing ..it is a lot quicker for surfing
around, and I prefer the (luxury of being able to
use the) frames based layout.

BTW - while we are peripherally on the subject
of search engines.  'download javadocs' is a good
search string for finding your way to the
..downloadable version.

Andrew T.
Aki Laukkanen - 28 Nov 2006 09:14 GMT
> as  a starting I need to know the exact code in java language that
> helps me to read the content of a .txt file.
> and after that, I will ask my next question.

Roedy Greene has a nice little applet that provides sample code for file
I/O at
<http://www.mindprod.com/applets/fileio.html> . That should get you started.
(At least it worked for me. ;-)

Signature

-Aki Laukkanen



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.