Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created September 22, 2012 16:46
Show Gist options
  • Select an option

  • Save edipofederle/3766711 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/3766711 to your computer and use it in GitHub Desktop.
square.java
public static List<Double> squareList(List<Double> in){
List<Double> out = new ArrayList<Double>();
for (Double d : in)
out.add(d*d);
return out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment