Created
April 22, 2015 20:03
-
-
Save ilyeshammadi/c4f8e59ffad04e4e6041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import java.awt.*; | |
public class Main { | |
public static void main(String[] args) { | |
// write your code here | |
Cercle c1 = new Cercle(new Point(1, 3), 1); | |
Cercle c2 = new Cercle(new Point(3, 3), 1); | |
Cercle c3 = new Cercle(c2); | |
System.out.println("Colision entre c1 et c2 : " + c1.isColision(c2)); | |
System.out.println("Colision entre c2 et c3 : " + Cercle.isColision(c2, c3)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment