package org.example; public class Main { // Class public static void main(String[] args) { // MAIN Object MyBasics myB = new MyBasics(); // myB local prop myB.myIfElse(); // for loop String[] localNames = myB.contactNames(); // ["Bob Smith", "Mary Jones", "Joe Doe"] //Print for (String name : localNames) { // for ( x in: ys ) // x local var of the loop {} // ys dataset //// 1. local static variable Class localNames //// 2. Object passed myB.contactNames() System.out.println(name); } // end for loop } // main } // Main