| Title | Topics | Action | |||
|---|---|---|---|---|---|
| 150 | Format Currency with NumberFormatUse Java's NumberFormat class to read a decimal and print it as Canadian currenc... | easy | ○ Not Started | Miscellaneous | Solve |
| 151 | Format Percent with NumberFormatUse Java's NumberFormat class to read a decimal ratio and print it as a percenta... | easy | ○ Not Started | Miscellaneous | Solve |
| 152 | Round with DecimalFormat 2 PlacesUse Java's DecimalFormat class to read a decimal and round it to exactly 2 decim... | easy | ○ Not Started | Miscellaneous | Solve |
| 153 | Pad Integer with DecimalFormatUse Java's DecimalFormat class to read an integer and print it padded with leadi... | easy | ○ Not Started | Miscellaneous | Solve |
| 154 | Enum Day BasicUse a Java enum to represent days of the week and print the current day.
Expect... | easy | ○ Not Started | Miscellaneous | Solve |
| 155 | Enum Traffic Light with ifUse a Java enum and an if statement to determine and print the action for a traf... | easy | ○ Not Started | Miscellaneous | Solve |
| 166 | Enum with Field and ConstructorUse an enum with a constructor, field, and getter method to store and retrieve a... | easy | ○ Not Started | Miscellaneous | Solve |
| 206 | Catch NullPointerExceptionThe variable `name` is set to `null`. Complete the program by adding a `try-catc... | easy | ○ Not Started | Miscellaneous | Solve |
| 207 | Catch ArrayIndexOutOfBoundsExceptionAn array contains three values: `{10, 20, 30}`. Read an index from input. Try to... | easy | ○ Not Started | Miscellaneous | Solve |
| 208 | Finally Block Always RunsThe try and catch blocks are already set up for division. Your job is to complet... | easy | ○ Not Started | Miscellaneous | Solve |
| 209 | Parse Double with Default FallbackRead one line of input. Try to parse it as a `double` using `Double.parseDouble(... | easy | ○ Not Started | Miscellaneous | Solve |
| 210 | Catch StringIndexOutOfBoundsExceptionRead a word and an index on the same line. Try to print `word.charAt(index)`. If... | easy | ○ Not Started | Miscellaneous | Solve |
| 211 | Multiple Catch BlocksRead a string from input. The try block parses it as an integer and then compute... | easy | ○ Not Started | Miscellaneous | Solve |
| 212 | Throw IllegalArgumentExceptionThe method `checkPositive(int n)` should throw an `IllegalArgumentException` wit... | easy | ○ Not Started | Miscellaneous | Solve |
| 213 | Catch Any ExceptionThe try block parses the input as an integer and accesses that index of `"Java"`... | easy | ○ Not Started | Miscellaneous | Solve |
| 214 | Read Exception InfoThe method `triggerError()` throws an `IllegalStateException` with the message `... | easy | ○ Not Started | Miscellaneous | Solve |
| 215 | Safe Array Access MethodComplete the method `safeGet(int[] arr, int index)`. It should return the elemen... | easy | ○ Not Started | Miscellaneous | Solve |
| 401 | Ternary Operator Even or OddAn integer `n = 7` is given. Use the ternary (conditional) operator `?:` to deci... | easy | ○ Not Started | Miscellaneous | Solve |
| 402 | Reverse a String with StringBuilderThe string `s = "hello"` is given. Use a `StringBuilder` to reverse it and print... | easy | ○ Not Started | Miscellaneous | Solve |
| 403 | Integer to Binary StringThe integer `n = 13` is given. Print its binary (base-2) representation using `I... | easy | ○ Not Started | Miscellaneous | Solve |
| 404 | Math max and minTwo integers `a = 8` and `b = 15` are given. Use `Math.max` and `Math.min` to pr... | easy | ○ Not Started | Miscellaneous | Solve |
| 405 | Join Strings with String.joinAn array `fruits = {"apple", "banana", "cherry"}` is given. Use `String.join` to... | easy | ○ Not Started | Miscellaneous | Solve |
| 156 | Enum Switch Shipping CostUse an enum and a switch statement to determine and print a shipping cost based ... | medium | ○ Not Started | Miscellaneous | Solve |
| 157 | DecimalFormat Grouping and Two DecimalsUse DecimalFormat to read a large decimal and print it with comma grouping separ... | medium | ○ Not Started | Miscellaneous | Solve |
| 158 | NumberFormat Locale ComparisonUse NumberFormat to read a decimal and print it as currency in two different loc... | medium | ○ Not Started | Miscellaneous | Solve |
| 159 | Enum Parse from InputRead a string from input, convert it to uppercase, and use Enum.valueOf() to par... | medium | ○ Not Started | Miscellaneous | Solve |
| 160 | Enum Ordinal and NameUse enum built-in methods to print the name and zero-based ordinal position of a... | medium | ○ Not Started | Miscellaneous | Solve |
| 161 | DecimalFormat Optional DecimalsUse DecimalFormat with the pattern '0.##' to format a decimal, removing unnecess... | medium | ○ Not Started | Miscellaneous | Solve |
| 162 | NumberFormat Integer GroupingUse NumberFormat.getIntegerInstance() to read a large integer and print it with ... | medium | ○ Not Started | Miscellaneous | Solve |
| 163 | Enum Loop ValuesUse a for-each loop with Enum.values() to iterate over all constants in the Stat... | medium | ○ Not Started | Miscellaneous | Solve |
| 167 | Enum from int with helper methodComplete the static fromScore() method that maps an integer to a Rank enum const... | medium | ○ Not Started | Miscellaneous | Solve |
| 169 | NumberFormat Compact Currency SummaryRead a price and tax amount, compute the total, and print all three as formatted... | medium | ○ Not Started | Miscellaneous | Solve |
| 216 | Custom RuntimeExceptionBuild a stock-checking system:
1. Create a class `OutOfStockException` that exte... | medium | ○ Not Started | Miscellaneous | Solve |
| 217 | Multi-Catch with | OperatorWrite a program that reads a string from input. Try to parse it as an integer us... | medium | ○ Not Started | Miscellaneous | Solve |
| 218 | Finally for Resource CleanupSimulate opening and closing a database connection. Write a program that:
1. Pri... | medium | ○ Not Started | Miscellaneous | Solve |
| 219 | Checked Exception and throwsCreate a checked exception and use it:
1. Define `InsufficientFundsException` th... | medium | ○ Not Started | Miscellaneous | Solve |
| 220 | Exception ChainingWrite a method `loadConfig(String input)` that tries to parse `input` as an inte... | medium | ○ Not Started | Miscellaneous | Solve |
| 221 | Validate Score with Custom ExceptionBuild a score validation system from scratch:
1. Create `InvalidScoreException` ... | medium | ○ Not Started | Miscellaneous | Solve |
| 222 | Nested Try-CatchWrite a program that reads a string. Use nested try-catch blocks:
- The **outer*... | medium | ○ Not Started | Miscellaneous | Solve |
| 223 | Exception Propagation through MethodsWrite two methods:
1. `parseValue(String s)` — returns `Integer.parseInt(s)`. Le... | medium | ○ Not Started | Miscellaneous | Solve |
| 224 | Re-throw Exception After LoggingWrite a method `parse(String s)` that tries to parse `s` as an integer. If a `Nu... | medium | ○ Not Started | Miscellaneous | Solve |
| 225 | Count Valid Integers in a LoopRead 5 lines of input. For each line, try to parse it as an integer. Count how m... | medium | ○ Not Started | Miscellaneous | Solve |
| 406 | Bitwise AND OR and XORTwo integers `a = 12` and `b = 10` are given. Print the results of the bitwise A... | medium | ○ Not Started | Miscellaneous | Solve |
| 407 | Count Digits and LettersRead one line of text from standard input. Count how many characters are digits ... | medium | ○ Not Started | Miscellaneous | Solve |
| 408 | Sum with VarargsWrite a `static` method named `sum` that accepts a variable number of `int` argu... | medium | ○ Not Started | Miscellaneous | Solve |
| 164 | DecimalFormat Negative Currency StyleFormat a negative decimal as accounting-style currency where negatives appear in... | hard | ○ Not Started | Miscellaneous | Solve |
| 165 | NumberFormat Parse and ReformatRead a comma-formatted number string, parse it back to a numeric value with Numb... | hard | ○ Not Started | Miscellaneous | Solve |
| 168 | DecimalFormat Scientific NotationUse DecimalFormat to read a number and format it in scientific notation with exa... | hard | ○ Not Started | Miscellaneous | Solve |
| 409 | Word Frequency with TreeMapThe array `words = {"apple", "banana", "apple", "cherry", "banana", "apple"}` is... | hard | ○ Not Started | Miscellaneous | Solve |
| 410 | Sort Strings by Length with ComparatorThe array `words = {"banana", "fig", "apple", "kiwi"}` is given. Sort it in asce... | hard | ○ Not Started | Miscellaneous | Solve |