Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.sda.typygeneryczne;
- public class Generyki<T> {
- public static <T> void wypisz10Razy(T obiekt) {
- for (int i = 0; i < 10; i++) {
- obiekt.toString();
- }
- }
- // public static <T> void wypiszRazy(T obiekt ...) {
- // for (int i = 0; i < 10; i++) {
- // obiekt.toString();
- // }
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement