KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Apparently a colon is used in multiple ways in Java. Would anyone mind explaining what it does? For instance here: String cardString = ""; for (PlayingCard c : this.list) // <-- { cardString += c + "\n"; } How would you write this for-each loop a different way so as to not incorporate the : ?
Tags (comma-separated)
Save Edits
Cancel