id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu arraylist2 > listOf7Cosines
prev  |  next  |  chance

Return an ArrayList of 7 doubles with the cosines of 0 - 6 in order. Use Math.cos() to find the cosine.


listOf7Cosines() → [1.0, 0.5403023058681398, -0.4161468365471424, -0.9899924966004454, -0.6536436208636119, 0.28366218546322625, 0.9601702866503661]

...Save, Compile, Run (ctrl-enter)

public ArrayList <Double> listOf7Cosines(){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy