Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Java Class and Object
class Rextester { int height; int weight; int hairLength; public void run() { System.out.println("This human can run"); } public void walk() { System.out.println("This human can walk"); } public void phisic() { System.out.println("Human phisic is : " + height+weight); } public static void main(String[] args) { /* Rextester boy1 = new Rextester(); boy1.height = 6; boy1.weight = 60; boy1.hairLength = 2; boy1.run(); boy1.walk(); boy1.phisic(); System.out.println("height : " + boy1.height); System.out.println("weight : " + boy1.weight); System.out.println("hairLength : " + boy1.hairLength); System.out.println("**********************************************"); Rextester boy2 = new Rextester(); boy2.height = 10; boy2.weight = 190; boy2.hairLength = 9; boy2.run(); boy2.walk(); boy2.phisic(); System.out.println("height : " + boy2.height); System.out.println("weight : " + boy2.weight); System.out.println("hairLength : " + boy2.hairLength); */ } }
run
|
edit
|
history
|
help
0
Basic LinkedList in Java
Arredondamento de datas para dias 10, 20 e 30
Java
3b
combination sum (variation)
Opr
hello!
Alllocate and release memory
Date_From_Str
Words with same letters