Java Tutorial | Function Static

 FUNCTION in JAVA

        Hello guys, welcome back to my blog,..
Today i will share to you about Static Function in Java, before we start, i use netbeans to coding my java code..
Lets Starto....

First, we must know the use of function in java is to make us easier to call our script, so we dont need to type the script again and again, we just call them by the name of function we create before..

Here i give you a simple Function that i made before....
This is the program, when we enter the Grade of our course, if the Grade is higher than the standard we will see the status is "You Pass The Exam", but if the Grade Lower than the standard we will see the status is "You Fail The Exam"


Okay i will show you the sricpt and i will explain it to you


The Function of Kuliah is a function that i made to display the
"Course :
  Grade :   "
Look at the Kuliah Function
There is scripts that i wrote to show the output and a Scanner to input the value of the variable makul and nilai.
output (makul, nilai) is a parameter we use to call the input from Course and Grade , and send it to Output Function.
In Output Function, there's a conditonal script, the sricpt is use to filter the grade that pass the standart or not, in conditonal if there's pass(); It's used to call Pass Function, and fail (); It used to call Pass Function.
In Pass Function and Fail Function, i just wrote sript to display the output "You Pass The Exam", and "You Fail The Exam"..

That's All of Function Static..
I hope it will usefull for you guys
Thanks and God Bless
Previous
Next Post »
Thanks for your comment