The Artima Developer Community
Sponsored Link

Java Answers Forum
Reading Text Files

2 replies on 1 page. Most recent reply: Sep 19, 2002 8:58 AM by thomas

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Joseph Dunne

Posts: 1
Nickname: joe90
Registered: Sep, 2002

Reading Text Files Posted: Sep 17, 2002 5:52 AM
Reply to this message Reply
Advertisement
I have a problem with understanding TextInput class as it is similar to Console class in regards to methods when I compile TextInput class it does not recognise the PareseInt method which is part of the Console class I have imported java io and java lang library classes but it saying it is part of the class integer which I believe is part of the java lang libraries.
I know that TextInput is not part of the java libraries
can someone explain this to me why this may be happening.


Ana

Posts: 12
Nickname: anika
Registered: Aug, 2002

Re: Reading Text Files Posted: Sep 19, 2002 3:03 AM
Reply to this message Reply
hi Joseph,
could u send the part of ur code where the metod is used or any other relevant parts?

thomas

Posts: 42
Nickname: turbomanic
Registered: Jul, 2002

Re: Reading Text Files Posted: Sep 19, 2002 8:58 AM
Reply to this message Reply
are you sure you are using the parseInt properly. Make sure the parameters is a string containing an int and nothing else. Yes it is part of the Integer class. All you need to do is Integer.parseInt(String s) where s contains a integer in string format. There is no need to import java.lang it should do that automatically.

Flat View: This topic has 2 replies on 1 page
Topic: How do I Extrract strings from HTML page like Price of a book ? Previous Topic   Next Topic Topic: com.inprise.vbroker.orb.DelegateImpl.verifyConnection

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use