package tugasSD;
/**
*
* @author Afini_
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class spirit {
static Scanner in = new Scanner(System.in);
public static void main (String[]args){
System.out.print("Banyak data : ");
int N = in.nextInt();
ArrayList dataX =new ArrayList();
ArrayList dataY =new ArrayList();
ArrayList hasil =new ArrayList();
//input data x & y
for(int i=0; i