013-002-003
Numeric Wrapper Classes: Using Integer and Double
Easy
Problem Description
Numeric Wrapper Classes: Using Integer and Double
Learning Objective: Understand basic usage of numeric wrapper classes like Integer and Double
Overview
Use Integer and Double classes to convert strings to numbers and perform basic operations.
Specifications
- Convert string to integer: Integer.parseInt()
- Convert string to double: Double.parseDouble()
- Get maximum value: Integer.MAX_VALUE
Input
An integer string and a decimal string are provided
Output Format
Integer: 42
Double: 3.14
Max Integer: 2147483647
Test Cases
※ Output examples follow programming industry standards
Input:
42 3.14
Expected Output:
Integer: 42 Double: 3.14 Max Integer: 2147483647
Input:
100 2.5
Expected Output:
Integer: 100 Double: 2.5 Max Integer: 2147483647
❌ Some tests failed
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 9 free executions remaining
