- Joined
- Jan 7, 2005
- Messages
- 7,550
This is a bit off-topic, but do you guys think it is okay to use “ while(true) (...) break; ”. This in Java, which is the language we've been using at uni for first year. My teacher says we should use a boolean variable instead and never while(true)break;, but the fact is that I went to Oracle's website and even saw some sample code doing this.