Skip to content

Commit

Permalink
Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
VladSlob authored Sep 3, 2024
1 parent 03a53f1 commit e503d73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/mate.academy/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import mate.academy.service.ProductService;

public class Main {

public static void main(String[] args) {
// Please test your Injector here. Feel free to push this class as a part of your solution
Injector injector = Injector.getInjector();
ProductService productService = null;
ProductService productService = (ProductService) injector.getInstance(ProductService.class);
List<Product> products = productService.getAllFromFile("products.txt");
products.forEach(System.out::println);
}
Expand Down

0 comments on commit e503d73

Please sign in to comment.