Java Coding Problems : Improve Your Java Programming Skills by Solving Real-World Coding Challenges.
The Modern Java Challenge is the book which contains a set of challenges designed specifically to help you master a specific skill in a specific domain. This will put your knowledge to test through real-world problems and help you in becoming an expert Java Programmer.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited,
2019.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Chapter 1: Strings, Numbers, and Math; Problems; Solutions; 1. Counting duplicate characters; What about Unicode characters?; 2. Finding the first non-repeated character; 3. Reversing letters and words; 4. Checking whether a string contains only digits; 5. Counting vowels and consonants; 6. Counting the occurrences of a certain character; 7. Converting a string into an int, long, float, or double; 8. Removing white spaces from a string; 9. Joining multiple strings with a delimiter
- 10. Generating all permutations11. Checking whether a string is a palindrome; 12. Removing duplicate characters; 13. Removing a given character; 14. Finding the character with the most appearances; 15. Sorting an array of strings by length; 16. Checking that a string contains a substring; 17. Counting substring occurrences in a string; 18. Checking whether two strings are anagrams; 19. Declaring multiline strings (text blocks); 20. Concatenating the same string n times; 21. Removing leading and trailing spaces; 22. Finding the longest common prefix; 23. Applying indentation
- 24. Transforming strings25. Computing the minimum and maximum of two numbers; 26. Summing two large int/long values and operation overflow; 27. String as an unsigned number in the radix; 28. Converting into a number by an unsigned conversion; 29. Comparing two unsigned numbers; 30. Division and modulo of unsigned values; 31. double/float is a finite floating-point value; 32. Applying logical AND/OR/XOR to two boolean expressions; 33. Converting BigInteger into a primitive type; 34. Converting long into int; 35. Computing the floor of a division and modulus; 36. Next floating-point value
- 37. Multiplying two large int/long values and operation overflow38. Fused Multiply Add; 39. Compact number formatting; Formatting; Parsing; Summary; Chapter 2: Objects, Immutability, and Switch Expressions; Problems; Solutions; 40. Checking null references in functional style and imperative code; 41. Checking null references and throwing customized NullPointerException; 42. Checking null references and throwing the specified exception; 43. Checking null references and returning non-null default references; 44. Checking the index in the range from 0 to length
- 45. Checking the subrange in the range from 0 to length46. equals() and hashCode(); 47. Immutable objects in a nutshell; 48. Immutable string; Pros of string immutability; String constant pool or cached pool; Security; Thread safety; Hash code caching; Class loading; Cons of string immutability; String cannot be extended; Sensitive data in memory for a long time; OutOfMemoryError; Is String completely immutable?; 49. Writing an immutable class; 50. Passing/returning mutable objects to/from an immutable class; 51. Writing an immutable class via the Builder pattern