Original code:
public class Song { private String name; private Song nextSong; public Song(String name) { this.name = name; } public void setNextSong(Song nextSong) { this.nextSong = nextSong; } public boolean isRepeatingPlaylist() { throw new UnsupportedOperationException("Waiting to be implemented."); } public static void main(String[] args) { Song first = new Song("Hello"); Song second = new Song("Eye of the tiger"); first.setNextSong(second); second.setNextSong(first); System.out.println(first.isRepeatingPlaylist()); } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.