Created
September 30, 2017 08:35
-
-
Save ps06756/40222cfd7e07bf2a38dc62c793a18886 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import com.google.inject.Injector; | |
import com.google.inject.Guice; | |
public class Main { | |
public static void main(String[] args) { | |
Injector injector = Guice.createInjector(new PhysicsClassroomModule()); | |
Classroom classroom = injector.getInstance(Classroom.class); | |
classroom.printStudent(); | |
classroom.printTeacher(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment