The Artima Developer Community
Sponsored Link

Java Answers Forum
newbie help

1 reply on 1 page. 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 threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat 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
Advertisement
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


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: newbie help Posted: Mar 18, 2002 2:24 PM
Reply to this message Reply
Just put your try and catch inside the loop.

Flat View: This topic has 1 reply on 1 page
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