Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermopili/216e1e3c2af88357db11769a5fcc390d to your computer and use it in GitHub Desktop.
Save fermopili/216e1e3c2af88357db11769a5fcc390d to your computer and use it in GitHub Desktop.
com.javarush.task.task12.task1230;
/*
Метод, который выводит на экран число 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