---
# System prepended metadata

title: 活用法的完整檔案

---

# 活用法的完整檔案
Person.java
```java=
public class Person {

	public void method01() {

	}

	public void method02(int x, int y) {
		System.out.println(x + y);
	}

	public int method03(int a, int b) {
		return a + b;
	}

}
```

Demo02.java
```java=
public class Demo02 {

	@Test
	public void getMethod() {
	Person p=new Person();
	p.method01();
	
	
	new Person().method02(1, 2);
	
	int c=new Person().method03(5, 6);
	System.out.println(c);
	}

}
```