@masfrost/

Classes in different files

Java

No description

fork
loading
Files
  • Main.java
  • Adder.java
Main.java
1
2
3
4
5
6
7
8
class Main {
	public static void main(String[] args) {
		Adder adder = new Adder();
		System.out.println(adder.add(11, 31));
		System.out.println(adder.add(1.5, 3.0));
		System.out.println(adder.add("Hello ", "World"));
	}
}