Welcome to Dream.In.Code
Become a Java Expert!

Join 149,470 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,949 people online right now. Registration is fast and FREE... Join Now!




ArrayIndexOutOfBoundException and ArithmeticException

 
Reply to this topicStart new topic

ArrayIndexOutOfBoundException and ArithmeticException

MarsCute
27 Jan, 2008 - 06:10 PM
Post #1

New D.I.C Head
*

Joined: 27 Jan, 2008
Posts: 3


help me in making a java program that will write a try block that will loop an inputted number with 5 arrays and will cathes by ArrayIndexOutOfBoundException.

also a program that will throws and catches an ArithmeticException when trying to attempt to take a negative value of square root. this wil include Math.sqrt() method.

thanks a lot!!!! smile.gif [font=Tahoma][size=7][b][color=#990000]
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: ArrayIndexOutOfBoundException And ArithmeticException
27 Jan, 2008 - 06:20 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,477



Thanked: 161 times
Dream Kudos: 9025
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Moved to the Java Forum smile.gif
User is online!Profile CardPM
+Quote Post

Jayman
RE: ArrayIndexOutOfBoundException And ArithmeticException
27 Jan, 2008 - 07:09 PM
Post #3

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,301



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 02:32PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month