99 Bottles of Beer/Java/Object Oriented: Difference between revisions
99 Bottles of Beer/Java/Object Oriented (view source)
Revision as of 20:39, 1 September 2022
, 1 year agoFixed syntax highlighting.
(Moving from main task page to shorten it) |
m (Fixed syntax highlighting.) |
||
Line 1:
Another solution for [[99 Bottles of Beer]], which in addition correctly handles the grammar. This solution is object-oriented. It is completely overkill for this problem.
<
/*************************
* Interface for things. *
Line 156:
song.sing(System.out);
}
}</syntaxhighlight>
|