Having Trouble with 5/8 step 3


#1

HI
I seem to have a problem and I am unable to get past step 3
I do not understand what I have to do so as to finish this


#2

please show us your code so we can help you :slight_smile:


#3

Use the get method to print out the lowest temperature contained in weeklyTemperatures.

import java.util.ArrayList;

public class Temperatures {

public static void main(String[] args) {
ArrayList <Integer> weeklyTemperatures=new ArrayList<Integer>();
weeklyTemperatures.add(78);
 weeklyTemperatures.add(67);
    weeklyTemperatures.add(89);
 weeklyTemperatures.add(94);
System.out.println(weeklyTemperatures .get(1) );

}

}
this is the exercise codemasterremastered master meant and i have a same problem with it I dont know what could i possibly have done wrong(i thing its a bug) but pls somebody tell me otherwise becouse i would really like to continue learnning


#4

System.out.println(weeklyTemperatures .get(1) );

see the space between weeklyTemperatures and the .

remove that space :slight_smile:


#5

OMG DIDNT SEE IT YOU ARE AMAZING
its just my nature when something is wrong i think its somebody elses fault(like a doezen programmers who maintein the site in this case) guess i need to change it quic and ty again


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.