SlideShare a Scribd company logo
1 of 1
Download to read offline
import java.util.*;
public class Demo{
public static void main(String []args){
Vector v = new Vector<>(); //Integer Vector
v.add(5); // Adding elements
v.add(4);
v.add(3);
v.add(2);
System.out.println(v.toString()); // Printing Vector
}
}
Solution
import java.util.*;
public class Demo{
public static void main(String []args){
Vector v = new Vector<>(); //Integer Vector
v.add(5); // Adding elements
v.add(4);
v.add(3);
v.add(2);
System.out.println(v.toString()); // Printing Vector
}
}

More Related Content

More from anithacells

K2S potassium sulfide. This is an ordinary ionic.pdf
                     K2S potassium sulfide. This is an ordinary ionic.pdf                     K2S potassium sulfide. This is an ordinary ionic.pdf
K2S potassium sulfide. This is an ordinary ionic.pdf
anithacells
 
• Students who earn less than a “C” in an upper-division business or.pdf
• Students who earn less than a “C” in an upper-division business or.pdf• Students who earn less than a “C” in an upper-division business or.pdf
• Students who earn less than a “C” in an upper-division business or.pdf
anithacells
 
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdfType 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
anithacells
 
VBClasses every object is defined by a class that describes vari.pdf
VBClasses every object is defined by a class that describes vari.pdfVBClasses every object is defined by a class that describes vari.pdf
VBClasses every object is defined by a class that describes vari.pdf
anithacells
 
The nutrient rich oxygenated blood is transferred from the left vent.pdf
The nutrient rich oxygenated blood is transferred from the left vent.pdfThe nutrient rich oxygenated blood is transferred from the left vent.pdf
The nutrient rich oxygenated blood is transferred from the left vent.pdf
anithacells
 
The communication and mutual understanding among patients, families,.pdf
The communication and mutual understanding among patients, families,.pdfThe communication and mutual understanding among patients, families,.pdf
The communication and mutual understanding among patients, families,.pdf
anithacells
 

More from anithacells (20)

Zeff - dec going down, inc going across IE - inc .pdf
                     Zeff - dec going down, inc going across IE - inc .pdf                     Zeff - dec going down, inc going across IE - inc .pdf
Zeff - dec going down, inc going across IE - inc .pdf
 
There are diastereomers. note Diastereomers (som.pdf
                     There are diastereomers. note Diastereomers (som.pdf                     There are diastereomers. note Diastereomers (som.pdf
There are diastereomers. note Diastereomers (som.pdf
 
oxidesNa2O,MgO peroxidesK2O2,H2O2 superoxidesC.pdf
                     oxidesNa2O,MgO peroxidesK2O2,H2O2 superoxidesC.pdf                     oxidesNa2O,MgO peroxidesK2O2,H2O2 superoxidesC.pdf
oxidesNa2O,MgO peroxidesK2O2,H2O2 superoxidesC.pdf
 
Nuclear Fusion and please rate me Helpful atleast.pdf
                     Nuclear Fusion and please rate me Helpful atleast.pdf                     Nuclear Fusion and please rate me Helpful atleast.pdf
Nuclear Fusion and please rate me Helpful atleast.pdf
 
K2S potassium sulfide. This is an ordinary ionic.pdf
                     K2S potassium sulfide. This is an ordinary ionic.pdf                     K2S potassium sulfide. This is an ordinary ionic.pdf
K2S potassium sulfide. This is an ordinary ionic.pdf
 
I believe you are missing the delocalized double .pdf
                     I believe you are missing the delocalized double .pdf                     I believe you are missing the delocalized double .pdf
I believe you are missing the delocalized double .pdf
 
Florenone is polar compound and Flourene is nonpo.pdf
                     Florenone is polar compound and Flourene is nonpo.pdf                     Florenone is polar compound and Flourene is nonpo.pdf
Florenone is polar compound and Flourene is nonpo.pdf
 
Equivalent Lewis structures are called resonance .pdf
                     Equivalent Lewis structures are called resonance .pdf                     Equivalent Lewis structures are called resonance .pdf
Equivalent Lewis structures are called resonance .pdf
 
• Students who earn less than a “C” in an upper-division business or.pdf
• Students who earn less than a “C” in an upper-division business or.pdf• Students who earn less than a “C” in an upper-division business or.pdf
• Students who earn less than a “C” in an upper-division business or.pdf
 
Benzene differs from water because it is nonpolar.pdf
                     Benzene differs from water because it is nonpolar.pdf                     Benzene differs from water because it is nonpolar.pdf
Benzene differs from water because it is nonpolar.pdf
 
Yes it is.SolutionYes it is..pdf
Yes it is.SolutionYes it is..pdfYes it is.SolutionYes it is..pdf
Yes it is.SolutionYes it is..pdf
 
X follows U (0, pi2) P(X x ) = 2xpi for 0 x pi2 Y =sin(X).pdf
X follows U (0, pi2) P(X x ) = 2xpi for 0 x pi2 Y =sin(X).pdfX follows U (0, pi2) P(X x ) = 2xpi for 0 x pi2 Y =sin(X).pdf
X follows U (0, pi2) P(X x ) = 2xpi for 0 x pi2 Y =sin(X).pdf
 
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdfType 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
Type 1Type 2juvenile-onset or insulin-dependent diabetesadult-.pdf
 
VBClasses every object is defined by a class that describes vari.pdf
VBClasses every object is defined by a class that describes vari.pdfVBClasses every object is defined by a class that describes vari.pdf
VBClasses every object is defined by a class that describes vari.pdf
 
The nutrient rich oxygenated blood is transferred from the left vent.pdf
The nutrient rich oxygenated blood is transferred from the left vent.pdfThe nutrient rich oxygenated blood is transferred from the left vent.pdf
The nutrient rich oxygenated blood is transferred from the left vent.pdf
 
The communication and mutual understanding among patients, families,.pdf
The communication and mutual understanding among patients, families,.pdfThe communication and mutual understanding among patients, families,.pdf
The communication and mutual understanding among patients, families,.pdf
 
The correct statements areA helical turn consists of about 10 bas.pdf
The correct statements areA helical turn consists of about 10 bas.pdfThe correct statements areA helical turn consists of about 10 bas.pdf
The correct statements areA helical turn consists of about 10 bas.pdf
 
Tadpoles eat many things. It ranges from one species to another spec.pdf
Tadpoles eat many things. It ranges from one species to another spec.pdfTadpoles eat many things. It ranges from one species to another spec.pdf
Tadpoles eat many things. It ranges from one species to another spec.pdf
 
Solution 2A mutual fund is a pool of bonds, stocks and other inve.pdf
Solution 2A mutual fund is a pool of bonds, stocks and other inve.pdfSolution 2A mutual fund is a pool of bonds, stocks and other inve.pdf
Solution 2A mutual fund is a pool of bonds, stocks and other inve.pdf
 
Pruno is alcoholic beverage produced from potatoes.The pathogenesi.pdf
Pruno is alcoholic beverage produced from potatoes.The pathogenesi.pdfPruno is alcoholic beverage produced from potatoes.The pathogenesi.pdf
Pruno is alcoholic beverage produced from potatoes.The pathogenesi.pdf
 

import java.util.; public class Demo{ public static void main(S.pdf

  • 1. import java.util.*; public class Demo{ public static void main(String []args){ Vector v = new Vector<>(); //Integer Vector v.add(5); // Adding elements v.add(4); v.add(3); v.add(2); System.out.println(v.toString()); // Printing Vector } } Solution import java.util.*; public class Demo{ public static void main(String []args){ Vector v = new Vector<>(); //Integer Vector v.add(5); // Adding elements v.add(4); v.add(3); v.add(2); System.out.println(v.toString()); // Printing Vector } }