Hydron

Main.java(for first lab)

Feb 19th, 2022 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. package ua.lviv;
  2.  
  3. import java.util.Date;
  4.  
  5. public class Main {
  6.     public static void print(String s, Clip... args) {
  7.         System.out.println();
  8.         for (Clip arg: args) {
  9.             System.out.print(arg.toString());
  10.         }
  11.     }
  12.  
  13.     public static void main(String[] args) {
  14.         Clip c1 = new Clip(),
  15.              c2 = new Clip("Wellboy", "Gusy", "#Oh_my_God#What_is_that"),
  16.              c3 = new Clip("Yarmak", "BackToTheGame", "#Feat_with_TrickyNicky", 320, 587000, 34, new Date(12L));
  17.         print("\n", c1, c2, c3);
  18.     }
  19. }
Add Comment
Please, Sign In to add comment