Create a code snippet in Java to parse a comma-separated string into a list of strings.
"Ruby,Python,JavaScript"
String str = "Ruby,Python,JavaScript";
List<String> list = Arrays.asList(str.split(","));

// Output 
// [Ruby,Python,JavaScript]