Merge pull request #2890 from sridhareaswaran/patch-1

added use of break keyword & new tutorial link
This commit is contained in:
Pratik Karki 2017-10-07 09:11:44 +05:45 committed by GitHub
commit 973532a079

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/)