Created
October 3, 2022 21:29
-
-
Save rmg007/2b39c6c3b64487d6be7b15a9801c239d to your computer and use it in GitHub Desktop.
learn and dive deep into Java Course. Type Inference lecture
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
| public class Main { | |
| public static void main(String[] args) { | |
| //myVariable = 45; | |
| //char myVariable = 'A'; | |
| var myVariable = 45; | |
| System.out.println(myVariable); | |
| var myVariable2 = 'A'; | |
| System.out.println(myVariable2); | |
| // illegal code | |
| //var x; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment