Created
February 23, 2016 15:48
-
-
Save ilyaBrandon/4c1d675d1e6973174029 to your computer and use it in GitHub Desktop.
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
public class BATTLEFRONT { | |
public static void main(String[] args) { | |
System.out.println(square(2.0)); | |
System.out.println(square(2)); | |
System.out.println(square(444.7)); | |
System.out.println((666)); | |
} | |
static double square(double number) { | |
return number * number; | |
} | |
static int square(int number) { | |
return number * number; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment