CJCoding With Joseph
15per day

Parse Double with Default Fallback

Read one line of input. Try to parse it as a double using Double.parseDouble(). If successful, print "Parsed: " followed by the value. If a NumberFormatException is thrown, print "Using default: 0.0".

⚠️ AUTO-INPUT MODE: The input stream will automatically contain 'hello\n'.

Expected Output:

Using default: 0.0
Topics:
Miscellaneous
📥 Auto-Input:
hello\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.