Created
March 19, 2017 12:12
-
-
Save fermopili/216e1e3c2af88357db11769a5fcc390d to your computer and use it in GitHub Desktop.
com.javarush.task.task12.task1230;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Метод, который выводит на экран число 10 | |
*/ | |
public class Solution { | |
public static void main(String[] args) { | |
Integer i = 5; | |
int x = transformValue(i); | |
System.out.println(x); | |
} | |
public static int transformValue(int i) { | |
return i * i; | |
} | |
public static int transformValue(Integer i) { | |
return i + i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment