| Title | Open | |||
|---|---|---|---|---|
| 150 | Format Currency with NumberFormatUse Java's NumberFormat class to read a decimal and print it as Canadian currency. | easy | Not started | Solve |
| 151 | Format Percent with NumberFormatUse Java's NumberFormat class to read a decimal ratio and print it as a percentage with exactly one decimal place. | easy | Not started | Solve |
| 152 | Round with DecimalFormat 2 PlacesUse Java's DecimalFormat class to read a decimal and round it to exactly 2 decimal places. | easy | Not started | Solve |
| 153 | Pad Integer with DecimalFormatUse Java's DecimalFormat class to read an integer and print it padded with leading zeros to exactly 5 digits. | easy | Not started | Solve |
| 154 | Enum Day BasicUse a Java enum to represent days of the week and print the current day. | easy | Not started | Solve |
| 155 | Enum Traffic Light with ifUse a Java enum and an if statement to determine and print the action for a traffic light. | easy | Not started | Solve |
| 166 | Enum with Field and ConstructorUse an enum with a constructor, field, and getter method to store and retrieve a numeric priority level. | easy | Not started | Solve |
| 206 | Catch NullPointerExceptionThe variable name is set to null. | easy | Not started | Solve |
| 207 | Catch ArrayIndexOutOfBoundsExceptionAn array contains three values: {10, 20, 30}. | easy | Not started | Solve |
| 208 | Finally Block Always RunsThe try and catch blocks are already set up for division. | easy | Not started | Solve |
| 209 | Parse Double with Default FallbackRead one line of input. | easy | Not started | Solve |
| 210 | Catch StringIndexOutOfBoundsExceptionRead a word and an index on the same line. | easy | Not started | Solve |
| 211 | Multiple Catch BlocksRead a string from input. | easy | Not started | Solve |
| 212 | Throw IllegalArgumentExceptionThe method checkPositive(int n) should throw an IllegalArgumentException with the message "Must be positive" if n is zero or negative. | easy | Not started | Solve |
| 213 | Catch Any ExceptionThe try block parses the input as an integer and accesses that index of "Java". | easy | Not started | Solve |
| 214 | Read Exception InfoThe method triggerError() throws an IllegalStateException with the message "Connection lost". | easy | Not started | Solve |
| 215 | Safe Array Access MethodComplete the method safeGet(int[] arr, int index). | easy | Not started | Solve |
| 401 | Ternary Operator Even or OddAn integer n = 7 is given. | easy | Not started | Solve |
| 402 | Reverse a String with StringBuilderThe string s = "hello" is given. | easy | Not started | Solve |
| 403 | Integer to Binary StringThe integer n = 13 is given. | easy | Not started | Solve |
| 404 | Math max and minTwo integers a = 8 and b = 15 are given. | easy | Not started | Solve |
| 405 | Join Strings with String.joinAn array fruits = {"apple", "banana", "cherry"} is given. | easy | Not started | Solve |
| 156 | Enum Switch Shipping CostUse an enum and a switch statement to determine and print a shipping cost based on the selected method. | medium | Not started | Solve |
| 157 | DecimalFormat Grouping and Two DecimalsUse DecimalFormat to read a large decimal and print it with comma grouping separators and exactly 2 decimal places. | medium | Not started | Solve |
| 158 | NumberFormat Locale ComparisonUse NumberFormat to read a decimal and print it as currency in two different locales: US and Germany. | medium | Not started | Solve |
| 159 | Enum Parse from InputRead a string from input, convert it to uppercase, and use Enum.valueOf() to parse it into a Level enum constant. | medium | Not started | Solve |
| 160 | Enum Ordinal and NameUse enum built-in methods to print the name and zero-based ordinal position of a Season constant. | medium | Not started | Solve |
| 161 | DecimalFormat Optional DecimalsUse DecimalFormat with the pattern '0.##' to format a decimal, removing unnecessary trailing zeros. | medium | Not started | Solve |
| 162 | NumberFormat Integer GroupingUse NumberFormat.getIntegerInstance() to read a large integer and print it with comma grouping separators. | medium | Not started | Solve |
| 163 | Enum Loop ValuesUse a for-each loop with Enum.values() to iterate over all constants in the Status enum and print each one. | medium | Not started | Solve |
| 167 | Enum from int with helper methodComplete the static fromScore() method that maps an integer to a Rank enum constant, then read a score and print the result. | medium | Not started | Solve |
| 169 | NumberFormat Compact Currency SummaryRead a price and tax amount, compute the total, and print all three as formatted US currency using a single NumberFormat instance. | medium | Not started | Solve |
| 216 | Custom RuntimeExceptionBuild a stock-checking system: 1. | medium | Not started | Solve |
| 217 | Multi-Catch with | OperatorWrite a program that reads a string from input. | medium | Not started | Solve |
| 218 | Finally for Resource CleanupSimulate opening and closing a database connection. | medium | Not started | Solve |
| 219 | Checked Exception and throwsCreate a checked exception and use it: 1. | medium | Not started | Solve |
| 220 | Exception ChainingWrite a method loadConfig(String input) that tries to parse input as an integer using Integer.parseInt(). | medium | Not started | Solve |
| 221 | Validate Score with Custom ExceptionBuild a score validation system from scratch: 1. | medium | Not started | Solve |
| 222 | Nested Try-CatchWrite a program that reads a string. | medium | Not started | Solve |
| 223 | Exception Propagation through MethodsWrite two methods: 1. | medium | Not started | Solve |
| 224 | Re-throw Exception After LoggingWrite a method parse(String s) that tries to parse s as an integer. | medium | Not started | Solve |
| 225 | Count Valid Integers in a LoopRead 5 lines of input. | medium | Not started | Solve |
| 406 | Bitwise AND OR and XORTwo integers a = 12 and b = 10 are given. | medium | Not started | Solve |
| 407 | Count Digits and LettersRead one line of text from standard input. | medium | Not started | Solve |
| 408 | Sum with VarargsWrite a static method named sum that accepts a variable number of int arguments (varargs) and returns their total. | medium | Not started | Solve |
| 164 | DecimalFormat Negative Currency StyleFormat a negative decimal as accounting-style currency where negatives appear in parentheses instead of with a minus sign. | hard | Not started | Solve |
| 165 | NumberFormat Parse and ReformatRead a comma-formatted number string, parse it back to a numeric value with NumberFormat, then reprint it with exactly 2 decimal places. | hard | Not started | Solve |
| 168 | DecimalFormat Scientific NotationUse DecimalFormat to read a number and format it in scientific notation with exactly 2 decimal places. | hard | Not started | Solve |
| 409 | Word Frequency with TreeMapThe array words = {"apple", "banana", "apple", "cherry", "banana", "apple"} is given. | hard | Not started | Solve |
| 410 | Sort Strings by Length with ComparatorThe array words = {"banana", "fig", "apple", "kiwi"} is given. | hard | Not started | Solve |