import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".

   class Main {
    public static void main(String[] args) {

    

    // prend x et y
    Point P1= new Point(10,6) ;
        
    // affecter les parametre d'un point passe 
    Point P2= new Point(P1);
        
    // x=1 et y=2
    Point P3= new Point();

    // afficher
    P1.affiche() ;
    P2.affiche() ;
    P3.affiche() ;

    // deplacer par dy et dx
    P1.deplace(-1,3) ;
    P1.affiche() ; 

    // Modifier seulement x
    P1.abscise(5);

    // return y
  
    System.out.println(P1.returnY());
    
        
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: