import java.util.Arrays; public class Classroom { public static void main(String[] args){ String[] students = {"Sade", "Alexus", "Sam", "Koma"}; double[] mathScores = new double[4]; mathScores[0] = 94.5; mathScores[2] = 76.8; System.out.println("The number of students in the class is "+ students.length+"."); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter