BAEL-5616: Added java wildcard imports example (#12448)

Co-authored-by: Abdul Wahab <abdul.wahab@monese.com>
This commit is contained in:
Abdul Wahab 2022-07-11 06:42:14 +03:00 committed by GitHub
parent b372864029
commit c0bba594a2
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.baeldung.imports.specific;
import java.util.Date;
import java.util.List;
import java.util.UUID;
public class Book {
private UUID id;
private String name;
private Date datePublished;
private List<String> authors;
}

View File

@ -0,0 +1,15 @@
package com.baeldung.imports.wildcard;
import java.util.*;
public class Book {
private UUID id;
private String name;
private Date datePublished;
private List<String> authors;
}

View File

@ -0,0 +1,17 @@
package com.baeldung.imports.wildcard;
import java.awt.*;
import java.util.*;
import java.util.List;
public class BookView extends Frame {
private UUID id;
private String name;
private Date datePublished;
private List<String> authors;
}

View File

@ -0,0 +1,19 @@
package com.baeldung.imports.wildcard;
import java.util.*;
import java.sql.*;
import java.sql.Date;
public class Library {
private UUID id;
private String name;
private Time openingTime;
private Time closingTime;
private List<Date> datesClosed;
}