Created
December 6, 2015 11:54
-
-
Save AGhost-7/34c74c370cd78a4a8006 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class One { | |
| public static void main(String [] args) { | |
| Scanner scn = new Scanner(System.in); | |
| Two two = new Two(scn); | |
| } | |
| } |
This file contains hidden or 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
| class Two { | |
| private Scanner scanner; | |
| public Two(Scanner scanner) { | |
| this.scanner = scanner; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment