Can someone help me with this java array program PLEASE??? I'm lost!?

India
May 9, 2007 1:50pm CST
The problem is this, i'm supposed to take an array, which you will soon see, and return it as a array list. this is the array String [ ] weekDays = { "monday", "Tuesday", "Wednesday", Thursday", "Friday"} ; then im to write a method with the specification: ArrayList convertWeekdays ( String[ ] ) { } that accepts the weekDays array as an argument and creates/returns an Arralist containing the same information. Java progrmmers please help me please i'm really lost.PLEASE!!
1 response
@janus13 (223)
• Colombia
9 May 07
is easy, look: convertWeekdays(String[] days) { List list = new ArrayList(); String day = (String)days[0]; list.add(day); day = (String)days[1]; list.add(day); day = (String)days[2]; list.add(day); . . . }