1. 程式人生 > >Java面向物件4

Java面向物件4

P    3-1 Point類的建構函式 (SDUT 2670)

import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x,y;
		x = sc.nextInt();
		y = sc.nextInt();
		System.out.println("(0,0)");
		System.out.println("(" + x + "," + y + ")");
	}
}