+ 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]; } } }

9th Mar 2018, 9:21 AM
Swati Kumari
Swati Kumari - avatar
2 odpowiedzi
+ 1
no answer???
9th Mar 2018, 1:04 PM
Swati Kumari
Swati Kumari - avatar
0
if i understand you correctly, you want to put arguments from Vector list to list A?
21st Sep 2018, 9:19 AM
ITknowledge
ITknowledge - avatar