Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
has a
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Test2 t1 = new Test2(); int ketqua = t1.Nhann(2); System.out.println(ketqua); } } class Test1 { int Nhan(int x) { return x*x; } } class Test2 { Test1 t; int y = 200; int Nhann(int z) { t = new Test1() ; int Nhannn = t.Nhan(z); return z*y; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Java Functional Programming
Coding Numbers - Polindrome
Rextester.java
Crescente.java
Date and Time
webPage to string
Basic LinkedList in Java (rewritten using for-loops)
program
formuły
Zombie virus
Please log in to post a comment.