Home Tutorialhelp Comment why do that

 
 

Comment

bolbol
why do that,
September 22, 2008 at 3:05 PM

Addition of two numbers!
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at addnumbers.main(addnumbers.java:4)


why do that ,,must print the sum when add two number
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Tips and Examples

Learn Java in a day
Learn Java in a day   ..., "Learn java in a day" tutorial will definitely create your... are the list of topics that you can learn easily in a day: Download and install 

Hibernate Interview Questions

what is java and why do i need it?
what is java and why do i need it?  Hi, Please tell me what is Java and why do i need it? Is it free to download? Also explain me how to write and test my first Java Application? What is the configuration or system requirement 

Hibernate Interview Questions

Why do we use ORM?
Why do we use ORM?  Why do we use ORM?   ORM is technology to access the data from the database. With the help of ORM framework, business... define the mapping of which property for which column. In ORM we can use plain java 

Java Beginners

Output Previous or Next Day of the Month
sequence of: Enter todays date(1-30): 30 Do you want the next or previous day...Output Previous or Next Day of the Month   Please Help! I need to create the following program: Objective of this Program: (1) To learn about having 

Java-Tutorials

Easiest way to learn Java
, java classes, java keywords, etc. Why learn Java? Several companies around...There are various ways to learn Java language but the easiest way to learn..., video tutorials and lectures that help beginners learn in Java. This tutorials 

Java Beginners

Day for the given Date in Java
Day for the given Date in Java  How can i get the day for the user input data ?   Hello Friend, You can use the following code: import..."); String day=f.format(date); System.out.println(day 

Java-Tutorials

Learn Java in 21 days
Anyone can learn Java in 21 days, all they need is dedication and concentration. Java Guide at RoseIndia can help you learn Java in 21 days. The course... program by watching a Java expert create it. In order to learn Java in 21 days 

General

Get first day of week
Get first day of week       In this section, we will learn how to get the first day of ..._package>java FirstDayOfWeek Day of week: 7 Sunday 

Java Beginners

learn
learn  how to input value in java 

Applet Questions

learn
learn  i need info about where i type the java's applet and awt programs,and how to compile and run them.please give me answer 

Spring Framework Questions

Why spring?
Why spring?  Why do we need to learn Spring? and where can we use it thanks 

Java-Tutorials

Learn Java
There is a need to learn Java programming in today?s world as it has become..., there is need of Java, Hence it become more important for a programmer to learn... professionals. There is a reason why Java has become so famous, it is because 

Java Beginners

Why is super.super.method(); not allowed in Java?
Why is super.super.method(); not allowed in Java?  Why is super.super.method(); not allowed in Java 

Java Code Examples

Java date add day
Java date add day In this tutorial, you will learn how to add days to date... to date or subtract days from date) for java applications. Here, we are going to add few days to current date and return the date of that day. For this, we 

Java Tips and Examples

Do-while loop in Java
Do-while loop in Java In this section you will learn about do-while loop in Java. do-while loop is similar to while loop but the difference is do-while loop... condition repeatedly and run at least once. For that we need a do-while loop so 

PHP Tutorial

Why PHP ?
Why PHP? Reasons to use PHP are given below: 1.    PHP is open... is easy to learn : PHP is extremely simple for newcomer, but offers many... complex data exchange, Java objects, and CORBA 

Java Tips and Examples

do-while Loop in Java
do-while Loop in Java       In some conditions in java, you need to run some statements and processes once at least. For that you have to use the do while loop in  after 

Java-Tutorials

How to learn Java?
If you are want to be a Java developer in future and are wondering how to learn Java language than there are two ways you can do that. One is the classroom... training. A young developer who is seeking a career in Java can learn the language 

Java Tips and Examples

Find Day of Month
Find Day of Month       This example explores how to find the day of a month and the day of a week  This example sets the year as 2007 and the day as 181. The example  

Java Beginners

Java is an opensource program or not? why???
Java is an opensource program or not? why???  Java is an open source program or not.. why 

Java Beginners

How can I learn Java?
concepts of Java. All these things you can find in our Learn Java in a day section...How can I learn Java?  Hi, I have just completed a course in HTML.... Now I want to learn Learn Java programming and become the expert in Java 

Java Beginners

Where to learn java programming language
fast and easily. New to programming Learn Java In A Day Master Java Tutorials...Where to learn java programming language  I am beginner in Java and want to learn Java and become master of the Java programming language? Where 

Java Beginners

to learn java
to learn java  I am b.com graduate. Can l able to learn java platform without knowing any basics software language.   Learn Java from the following link: Java Tutorials Here you will get several java tutorials 

Java Beginners

Hey Guys really need to learn - Java Beginners
Hey Guys really need to learn  Im a java beginner and i want to know how can i input 3 value.. Wath i mean is in C, to you to be able to input number u will use scanf(%d%d%d, & month, day, year). How can i do this in java 

Java Beginners

Learn java
Learn java  Hi, I am absolute beginner in Java programming Language. Can anyone tell me how I can learn: a) Basics of Java b) Advance Java c) Java frameworks and anything which is important. Thanks 

General

Java get Next Day
Java get Next Day       In this section, you will study how to get the next day in java...() provide the string of days of week. To get the current day, we have used 

Java Beginners

Why Generics was introduced in Java?
Why Generics was introduced in Java?  Hi, Why Generics was introduced in Java and what is was its motive? Thanks   Generics were introduced in Java for the development of more bug free code. It enables the code 

Java Interview Questions

why java is securable ?
why java is securable ?  why java is securable ?   Hi Friend, Java is secured because of following reasons: 1) It doesn't allow... is executed under JAVA Runtime Environment which has several Security related checking 

Java Beginners

Why bufferedreader is used in java?
Why bufferedreader is used in java?  Hi, What is the use of BufferedReader class in Java? why bufferedreader is used in java? It will be great if anyone can give me the example code of BufferedReader class in java. Thanks 

Java-Tutorials

Do While Loop in Java
Do while loop in Java There are three loops most commonly used in Java e.g..... Do while loop is java is slightly different with While loop as in While loop... for the do-while loop: do { statements; } while(condition 

Java Beginners

How to learn programming free?
, Here are the tutorials: Beginners Java Tutorial Learn Java in a day Master Java...How to learn programming free?  Is there any tutorial for learning Java absolutely free? Thanks   Hi, There are many tutorials on Java 

Java-Tutorials

Learn Java for beginners
Beginners can learn Java online though the complete Java courses provided at Roseindia for free. This Java course covers the whole of Java programming... a programmer from basic to advance level of Java. New programmers prefer to learn Java 

Java-Tutorials

Best way to learn Java
Best way to learn Java is through online learning because you can learn it from the comfort of your home. Online learning of Java is also free, the only... that provide you Java guides or courses online, even providing certificates 

Java Tips and Examples

Find the Day of the Week
Find the Day of the Week       This example finds the specified date of  an year and a day... time zone, locale and current time. The fields used:  DAY_OF_WEEK 

Hibernate Questions

What do you understand by Hibernate in Java?
What do you understand by Hibernate in Java?  Hey, do you know about Hibernate in Java? I have to learn it for my next project. What is the best and probably most easiest way to learn this Hibernate stuff? How it is beneficial 

JDBC-Tutorials

JDBC Training, Learn JDBC yourself
programming language of java then fist learn our following two tutorials: Learn Java in a Day and Master... JDBC Connection Pooling Accessing Database using Java and JDBC Learn how 

Java-Tutorials

Where can I learn Java Programming
Learn Java in a Day Master Java in a Week More links for Java... and time to learn Java in a right way. This article is discussing the most asked question which is "Where can I learn Java Programming?". We have 

Java Beginners

How much time it takes to learn Java
, You can learn the basics of Java in a day. Read our tutorial Learn Java in a day...How much time it takes to learn Java  Hi, As a beginner in programming how much time it will take to learn Java programming? I have little 

Java Beginners

what should i do next?? - Java Beginners
what should i do next??  I know java basics.actully i passed the SCJP exam.Then now i have no idea about what should i do next.I like to come... can learn servlets after that JSP.My personal interest iam saying that if u 

Java-Tutorials

Learn Java Programming
in it, Learn Java programming online with tutorials and simple examples... and mobile phones. Career in Java programming is vast and that is why most of the programmer wants to learn this language quickly. The basic of Java tutorials 

Java-Tutorials

Learn Java for beginners
of their home and become a Java professional in no time. To learn Java, a beginner has... on expanding and adding new codes every day, this creates a problem for Java... by anybody. If a beginner in Java opts to learn Java online, he/she can get 

Java Interview Questions

do this for me plzz - Java Interview Questions
do this for me plzz  Given the no of days and start day of a month... to print in the same line i.e., without printing a newline. 2)You do...: http://www.roseindia.net/java/ Thanks. Amardeep 

Spring Framework

Why to use Spring Framework?
Why to use Spring Framework in a web application? In this article I will explain you the features and benefits of Spring Framework. We will also learn how and why developers are using the most popular Java application development 

Java Beginners

Do needful - Java Beginners
Do needful  Hai how can I do the string to Hex in java. Pls help me  use conversion concept  Hi friend, import java.io.*; import java.io.IOException.*; public class StringToHexa{ public static void 

Programming Tutorials

EJB, Enterprise java bean- Why EJB (Enterprise Java Beans)?
Why EJB (Enterprise Java Beans)?        Enterprise Java Beans or EJB for short is the server-side component architecture for the Java 2 Platform 

Programming Tutorials

While and do-while
While and do-while       Nested classes Here is another advantage of the Java, object... briefly in the next section.   Why Use Nested Classes 

Java-Tutorials

The while and do
While and do-while      ...\xml>java Bonjour Bonjour Bonjour Bonjour Bonjour... that the condition becomes false and the loop terminates. Have a look at do 

Java Beginners

Dont Do this - Java Beginners
Dont Do this  Whenever you guys ask a question please describe your query? Otherwise you lost your time and other who are given answer to you. thanks Rajanikant 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

How we learn java
How we learn java  what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type 

Java Beginners

how to do this?
how to do this?   Given any integer 2D array, design then implement a Java program that will add to each element in the array the corresponding column number and the corresponding row number. Then, it prints the array before 

General

Getting Previous, Current and Next Day Date
Getting Previous, Current and Next Day Date       In this section, you will learn how to get previous, current and next date in java. The java util package provides 

Java Interview Questions

why zero? - Java Interview Questions
why zero?  import java.util.Scanner; public class Simple { public... number is" + lowest); } } why the lowest number is zero?.. i know by default it will be zero.. but why i can get value for largest number 

Java Beginners

Why doesn't Java allow overriding of static methods?
Why doesn't Java allow overriding of static methods?  Why doesn't Java allow overriding of static methods 

Java Beginners

Why does Java not support operator overloading?
Why does Java not support operator overloading?  Hi, Why does Java not support operator overloading? thanks 

Java Beginners

why java program not run with msword editor
why java program not run with msword editor  if java program write in MICROSOFT WORD then why they are not run with jdk 

Java Beginners

why we use constructors instead of methods in java?
why we use constructors instead of methods in java?   why we use constructors instead of methods in java 

Java Beginners

Toedter JDateChooser JSpinner change day value by default in java
Toedter JDateChooser JSpinner change day value by default in java  i have a question, by default the JSpinner when you press up or down buttons it changes the month value. There is a way to change the day value, instead 

General Information

Fashion Trends: Why do we follow them?
Fashion Trends: Why do we follow them? We all hear about the new fashion trends and we always wonder, why do some people follow these trends so strictly... to wear strange outfits that were neither good looking nor comfortable. So, why 

Java Beginners

why java file save as its class name
why java file save as its class name  hi,this is subbareddy vajrala.my doubt is why java files save as its class names 

Struts Questions

why servlet as controller - Struts
why servlet as controller   Hi Friends, Main reasons for using servlet as a controller in struts. why not jsp . Thanks Prakash  Hi Friend, JSP is again a servlet which is having HTML syntax with java support.All 

Java Beginners

Why application server is important?
Why application server is important?  Hi, I have to select the good application server for running my Java based web applications. Which application server or tomcat container is good to run the application. On my website 

Hibernate Tutorial Example

Why hibernate is used?
Why hibernate is used? Hibernate is leading ORM solutions for developing the persistence layer of the enterprise applications. It provides gives performance... Hibernate saves the development time Hibernate allows to map the Java 

Java Beginners

why we use abstract class in java?
why we use abstract class in java?  what is the the purpose of abstract class.Give example when to use abstract and when use interface 

XML Tutorials

Why XML?, Why XML is used for?
Why XML? In this section we will understand the importance of XML and see Why... the structured data into XML files. There are various uses of the XML files. Why XML... Why XML is so important in programming? These days programming of almost all 

Programming Tutorials

Implementation of Day Class
Implementation of Day Class Here we are going to design and implement the class Day. The class Day should store the days of the week. Then test the following operations through the object of the class Day: 1) Set the day. 2) Print 

Java Beginners

why we use design patterns in java?Example?
why we use design patterns in java?Example?  Hi..... Why we use design patterns?,why they are needed in programming languages?,advantages?   hi friend, please go through the following links may this will be helpful 

Java Interview Questions

Which java collection to use in scenario below and Why?
Which java collection to use in scenario below and Why?  I want to store thousands of record in a collection and later I want to search. For best and optimized results, which collection will I prefer 

Java-Tutorials

Java Training
and is being considered a better way of learning the Java Language. How and why... masters of Java Technology. This type of virtual training allows student to learn.... Java is an open source and every day a new topic or code is added 

Java Tips and Examples

Learn Java - Learn Java Quickly
Learn Java - Learn Java Quickly       Java is an object oriented programming language... and universities. The most important feature of Java is that it can run 

Java Beginners

what fastest DataStructre(efficient) in java? and why? - Java Beginners
what fastest DataStructre(efficient) in java? and why?  what is the fastest data Structres in java? and how,why compare to other DataStructer from other 

JSP Servlet Questions

How do i do the coding for 'leaving a comment' in java
How do i do the coding for 'leaving a comment' in java  i am designing a webpage.In my webpage i want to add the option of adding a comment by the readers of the page.how do i do 

Training

Marvellous chance to learn java from the Java Experts
Marvellous chance to learn java from the Java Experts A foundation course on Java technology which... for Software Development on Java Platform. Learn to implement 

Framework Questions

is it necessary to have depth knowledge on servlets jsp and jdbc to learn java frameworks
is it necessary to have depth knowledge on servlets jsp and jdbc to learn java frameworks  Hi.. My name is naveen..Im planning to learn java frame... knowledge..my question is do i need to have depth knowledge of servlets jsp 

Java Beginners

How do I do this program? I'm new to Java programming...
How do I do this program? I'm new to Java programming...  Suppose you want to print out numbers in brackets, formatted as follows: [1] [2] [3] and so on. Write a method that takes two parameters: howMany and lineLength 

Java-Tutorials

How to learn Java easily?
If you are wondering how to learn Java easily, well its simple, learn... Java learning. The students opting to learn Java are of two types, either... a simple language and easy way to understand and learn the language. Java on its 

Java Beginners

How do I compare strings in Java?
How do I compare strings in Java?  How do I compare strings in Java 

Java Beginners

How do I decompile Java class files?
How do I decompile Java class files?  How do I decompile Java class files 

Java Beginners

How do I initialize a byte array in Java?
How do I initialize a byte array in Java?  How do I initialize a byte array in Java 

Java Beginners

Why is the main method declared static?
Why is the main method declared static?  Hi, Why is the main method... Java class always has the same signature, and we declare public static void main... without creating any instance for the java class, where we declared it. Any static 

Java-Tutorials

How to Learn Java
, how to learn Java? Learning Java is not that difficult just the right start is needed. The best way to learn Java today without spending money in through... or twice. If you are opting to learn Java online the only thing required 

Enterprise Java

Introduction To Java Servlet Technology
Introduction To Java Servlet Technology In this tutorial you will learn about the Java servlet technology and why it came into existence, what are its features etc. Java Servlet is a technology to generate the dynamic content on web 

JDBC Questions

java [ cannot retrive date from sql ] why??
java [ cannot retrive date from sql ] why??   import java.util.Date; import java.text.SimpleDateFormat; import java.text.ParseException...=st.executeQuery("select amt from add where dte= "+sdf.format(da)+" "); // why 

Java-Tutorials

Java tutorial for beginners
Java tutorials for beginners will help them learn the basic of Java.... Here is why a Java beginner should work on Java language and not any other... in Java help them learn Java language step by step and slowly. We understand 

Java Beginners

how to do combinations in java - Java Beginners
how to do combinations in java  i have 2 arrayLists. i want do...()); } } } For more information on Java.util Package visit to : http://www.roseindia.net/java/example/java/util/ Thanks 

Java Interview Questions

why the occupancy rate is zero? - Java Interview Questions
why the occupancy rate is zero?  import java.util.Scanner; public class lab3 { public static void main(String[]args) { int floor; int...); } } why the occupancy rate is always zero? please help. tq.  Hello 

Java Server Faces Questions

java do wile - Java Server Faces Questions
java do wile  Write a program that asks the user to enter two words. The program then prints out both words on one line. The words will be separated by dots so that the total line length is 40. If your first word was turtle 

Java Beginners

why my keyevent not function ? - java swing -
why my keyevent not function ? - java swing -   import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import 

Java Beginners

why my keyevent not function ? - java swing -
why my keyevent not function ? - java swing -   import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import 

Java Beginners

Why the null Pointer exception is comming? - Java Beginners
Why the null Pointer exception is comming?  My code is given below: import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import 

Java Beginners

for writting java program why we are taking more than one class
for writting java program why we are taking more than one class  for writting java program only one class is enough but why we are taking more than one class 

Java Interview Questions

Why does Java provide both abstract class as well as interface
Why does Java provide both abstract class as well as interface  why does java have both abstract class as well as interface? what is the need or importance of having both 

Hibernate Questions

why to use hibernet vs jdbc
why to use hibernet vs jdbc  plz send me the reply   Hi Friend, Differences: 1) Hibernate is data base independent Where JDBC is database... to implement your java cache. 4) Development is faster in Hibernate than JDBC. 5 

Java-Tutorials

Learn Java online
can learn at his/her pace. Learning Java online is not difficult because every...Learning Java is now as easy as never before. Many websites today provide the facility of learning Java programming online by providing enough material like 

Java Beginners

how do you parse by reference in java(with JGrasp)
how do you parse by reference in java(with JGrasp)  i am a 1st year beginner in java programming(GR 10) at hillcrest High School in south Africa My question is how do you parse by reference in java(with JGrasp) please help me i 

Java Beginners

HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE  Hi , Greetings. I have created modules in java separately , example student registration , view... , student regis. modules is displayed and so on. What need to do to create 

Java Beginners

why java does not support multiple inheritance - Java Beginners
why java does not support multiple inheritance  hello friend, i knows that multiple inheritance is not supported in JAVA but this program looks ok then why we can not extends multiple classes in a single class, eventhough 

Advertisements Advertisements
 

 

 

DMCA.com