public void accelerate() { System.out.println("car is accelerating"); } public void headlightsOn() { System.out.println("car's headlights is on"); } public void headlightsOff() { System.out.println("car's headlights is off"); } public int return0dometer(int odometerValue) { return 10000; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter