java.util.NoSuchElementException: head of empty list

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via coderanch.com by Unknown author, 1 year ago
via coderanch.com by Unknown author, 1 year ago
via Coderanch by Chan Ag, 11 months ago
via Stack Overflow by Alexander Samoilov
, 2 years ago
java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:337)
at week1.session$$anonfun$main$1.process$1(week1.session.scala:60)
at week1.session$$anonfun$main$1.balance$1(week1.session.scala:63)
at week1.session$$anonfun$main$1.apply$mcV$sp(week1.session.scala:68)

Users with the same issue

Once, 5 days ago
Once, 5 days ago
2 times, 1 month ago
3 times, 1 month ago
Once, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.