8000 Merge branch 'master' of https://github.com/PacktPublishing/Java-Codi… · eellpp/Java-Coding-Problems@23ba1ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 23ba1ee

Browse files
committed
2 parents b272fd5 + 057f7a5 commit 23ba1ee

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

Chapter01/P01_CountDuplicateCharacters/src/modern/challenge/Strings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static Map<String, Integer> countDuplicateCharactersVCP1(String str) {
5151
// or, like this (this code produce the same result as the commented code above
5252
int cp = str.codePointAt(i);
5353
String ch = String.valueOf(Character.toChars(cp));
54-
if(Character.charCount(cp) == 2) { // 2 means a suroggate pair
54+
if(Character.charCount(cp) == 2) { // 2 means a surrogate pair
5555
i++;
5656
}
5757

Chapter01/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Strings, numbers & math problems
2-
This chapter includes 39 problems that involves strings, numbers and mathematical operations. The chapter starts with a bunch of classical problems for strings such as counting duplicates, reversing a string, removing whitespaces and so on and forth. The chapter continue with problems dedicated to numbers and mathematical operations such as summing two large numbers and operation overflow, comparing two unsigned numbers, compute the floor of a division and modulus, etc. Each problem is passed through several solutions including Java 8 functional style. Moreover, the chapter covers through problems the futures added in JDK 9, 10, 11 and 12.
2+
This chapter includes 39 problems that involves strings, numbers and mathematical operations. The chapter starts with a bunch of classical problems for strings such as counting duplicates, reversing a string, removing whitespaces and so on and forth. The chapter continue with problems dedicated to numbers and mathematical operations such as summing two large numbers and operation overflow, comparing two unsigned numbers, compute the floor of a division and modulus, etc. Each problem is passed through several solutions including Java 8 functional style. Moreover, the chapter covers through problems the futures added in JDK 9, 10, 11 and 12.

Chapter03/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Working with date and time
2-
This chapter includes 20 problems that involves date and time. These problems are meant to cover a wide range of topics (e.g., converting, formatting, adding, subtracting, defining periods/durations, computing, etc) via **Date**, **Calendar**, **LocalDate**, **LocalTime**, **LocalDateTime**, **ZoneDateTime**, **OffsetDateTime**, **OffsetTime**, **Instant** and so on.
2+
This chapter includes 20 problems that involves date and time. These problems are meant to cover a wide range of topics (e.g., converting, formatting, adding, subtracting, defining periods/durations, computing, etc) via **Date**, **Calendar**, **LocalDate**, **LocalTime**, **LocalDateTime**, **ZoneDateTime**, **OffsetDateTime**, **OffsetTime**, **Instant** and so on.

Chapter06/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Java I/O - Paths, files, buffers, scanning and formatting
1+
# Java I/O - Paths, files, buffers, scanning and formatting
22
This chapter includes 20 problems that involve Java I/O for files. From manipulating, walking and watching paths to streaming files and efficient ways for reading/writing text and binary files, we will cover a hand of problems that are a must in the arsenal of any Java developer.
33

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
## $5 Tech Unlocked 2021!
2-
[Buy and download this Book for only $5 on PacktPub.com](https://www.packtpub.com/product/java-coding-problems/9781789801415)
3-
-----
4-
*If you have read this book, please leave a review on [Amazon.com](https://www.amazon.com/gp/product/1789801419). Potential readers can then use your unbiased opinion to help them make purchase decisions. Thank you. The $5 campaign runs from __December 15th 2020__ to __January 13th 2021.__*
1+
2+
53

64
# Java Coding Problems
75

@@ -73,3 +71,7 @@ He is the author of several books, videos, and dozens of articles related to Jav
7371
[Click here](https://docs.google.com/forms/d/e/1FAIpQLSdy7dATC6QmEL81FIUuymZ0Wy9vH1jHkvpY57OiMeKGqib_Ow/viewform) if you have any feedback or suggestions.
7472

7573

74+
### Download a free PDF
75+
76+
<i>If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.<br>Simply click on the link to claim your free PDF.</i>
77+
<p align="center"> <a href="https://packt.link/free-ebook/9781789801415">https://packt.link/free-ebook/9781789801415 </a> </p>

0 commit comments

Comments
 (0)
0