Quick win: double a number
A method takes input and gives back a value with return.
Your task
Fill in the body of twice so it returns the input doubled.
Integer twice(Integer n) {
return null;
}Requirements
- twice(4) should be 8
- twice(0) should be 0
- twice(-3) should be -6
- twice(<hidden>) should be double its input