Last active
December 27, 2017 01:40
-
-
Save ghtali/cbea2706cc670940ee5859e635198acc to your computer and use it in GitHub Desktop.
Call to a void method Java
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
import java.lang.reflect.Method; | |
public class Example { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
MethodRankPoints(19.9); | |
} | |
public static void MethodRankPoints(double points) { | |
if(points >= 22.1) { | |
System.out.println("Rank A"); | |
}else if(points >= 19.8) { | |
System.out.println("Rank B"); | |
}else { | |
System.out.println("Rank C"); | |
} | |
} | |
} | |
//A personal training, source: https://www.tutorialspoint.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment