added use of break keyword & new tutorial link

This commit is contained in:
Sridhar Easwaran 2017-10-05 14:40:34 +05:30 committed by GitHub
parent ccaa6ce57b
commit 7559305fb7

View File

@ -418,6 +418,8 @@ public class LearnJava {
// String class, and a few special classes that wrap primitive types:
// Character, Byte, Short, and Integer.
// Starting in Java 7 and above, we can also use the String type.
// Note: Do remember that, not adding "break" at end any particular case ends up in
// executing the very next case(given it satisfies the condition provided) as well.
int month = 3;
String monthString;
switch (month) {
@ -886,6 +888,8 @@ The links provided here below are just to get an understanding of the topic, fee
* [Codingbat.com](http://codingbat.com/java)
* [Codewars - Java Katas](https://www.codewars.com/?language=java)
**Books**:
* [Head First Java](http://www.headfirstlabs.com/books/hfjava/)