Skip to content

Instantly share code, notes, and snippets.

@rmg007
Created October 3, 2022 21:29
Show Gist options
  • Select an option

  • Save rmg007/2b39c6c3b64487d6be7b15a9801c239d to your computer and use it in GitHub Desktop.

Select an option

Save rmg007/2b39c6c3b64487d6be7b15a9801c239d to your computer and use it in GitHub Desktop.
learn and dive deep into Java Course. Type Inference lecture
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