tubeshowcase●1,175,927 videos♡ My collection 0
← Learn to Code

Learn to Code09:09

Learn Java arrays in 9 minutes! 🍎

Bro Code ↗

From the creator

#java #javatutorial #javacourse import java.util.Arrays; public class Main { public static void main(String[] args){ // array = a collection of values of the same data type // * think of it as a variable that can store more than 1 value * String[] fruits = {"apple", "orange", "banana", "coconut"}; //fruits[0] = "pineapple"; //int numOfFruits = fruits.length; //Arrays.sort(fruits); //Arrays.fill(fruits, "pineapple"); for(String fruit : fruits){ System.out.println(fruit); } } }

Published 2024-12-05 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code