The Artima Developer Community
Sponsored Link

Java Answers Forum
newbie help

1 reply. Most recent reply: Mar 18, 2002 2:24 PM by Matt Gerrans

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 flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 1 reply on 1 page
Jenny Cur

Posts: 1
Nickname: jcur101
Registered: Mar, 2002

newbie help Posted: Mar 18, 2002 9:40 AM
Reply to this message Reply
i am in a for loop and i'm reading lines from a text file. in the same time i'm checking for exceptions of type NumberFormatException for which i have a catch clause outside the loop. is there any way to get back in the loop and continue reading the lines from the file after i cath one of those exceptions mentioned above? thanks


Re: newbie help Posted: Mar 18, 2002 2:24 PM
Reply to this message Reply
Posted by: Matt Gerrans    Posts: 1153 / Nickname: matt / Registered: Feb, 2002
Just put your try and catch inside the loop.


Topic: maximizing java.awt.Frame Previous Topic   Next Topic Topic: Writind reading from a log file

Sponsored Links



Google
  Web Artima.com   

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