Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
269 B
4
Indexable
Never
public class Main {
    public static void main(String[] args) {
      int myInt = 9;
      double myDouble = myInt; // Automatic casting: int to double
  
      System.out.println(myInt);      // Outputs 9
      System.out.println(myDouble);   // Outputs 9.0
    }
  }