+ 1
Tell me please ... What's wrong with this code?
// program to input 5 nos. Nd display the smallest no. from input 5 nos. using vector// import java.util.*; class Number { public static void main(String args[]) { Vector list = new Vector(5); int i; for(i=0;i<5;i++) { int A[]= new int[5]; list.copyInto(A[]); int s= A[i]; for(i=0;i<5;i++) { if(A[i]<s) { s=A[i]; } } }
2 Answers
+ 1
no answer???
0
if i understand you correctly, you want to put arguments from Vector list to list A?