Advertisement
Raleurs

Algo

Dec 7th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void afficherParcours(Coordonnees[] parcours){
  2. for (int i = 0; i < parcours.length; i++) {
  3. System.out.println(parcours[i]);
  4. }
  5. }
  6. public static Coordonnees[] creerParcours(){
  7. System.out.println("Entrer la taille du parcoure (le nombre de coordonés)");
  8. int taille = scanner.nextInt();
  9. Coordonnees[] parcours = new Coordonnees[taille];
  10. for (int i = 0; i < parcours.length; i++) {
  11. parcours[i]=lireCoordonnees();
  12. }
  13. return parcours;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement