Comment on Tutorial - Vector example in Java By Grenfel



Comment Added by : Srini

Comment Added at : 2015-04-05 17:00:58

Comment on Tutorial : Vector example in Java By Grenfel
HI Friends,

I am new to java and i have one small doubt. In the above program we are passing as v.addElement(new Integer(1)) and i written in method as v.addElement(45) and it is working fine. Can one explain what is the difference here.


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. tis s very useful and easy to capture all persons
View Tutorial          By: Divya at 2013-12-19 05:42:32

2. I am to learn J2ME
View Tutorial          By: ravi kumar at 2011-06-20 05:50:20

3. this is the output i get.
Help me.
<

View Tutorial          By: shubham saxena at 2014-04-01 17:06:00

4. Can u show how to do text to speech with servlet.
View Tutorial          By: Rotika at 2011-01-23 20:54:40

5. pl tel me how to open port no

i can

View Tutorial          By: SUdhir at 2011-01-28 00:21:55

6. i need some simple java programs
View Tutorial          By: ramya at 2009-11-24 04:25:07

7. Life-saving post, man!
(In my case i had II

View Tutorial          By: Julianno Jungle at 2013-06-28 18:32:03

8. thank for the sharing.
View Tutorial          By: likelove at 2014-11-22 12:41:58

9. Hi , it was nice tutorial to understand the differ
View Tutorial          By: jagan at 2014-06-05 05:13:59

10. Hi Maybelline, This is the <a href="http:/
View Tutorial          By: Daniel Malcolm at 2008-08-21 06:57:31