JAVA · ОСНОВЫ · LESSON 13
Take a number.
Array index · about 14 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Type an example manually. Check the signs and brackets.
public class Main {
public static void main(String[] args) {
int[] nums = {10, 20, 30};
System.out.println(nums[1]);
}
}Open the editor for class workSolve it yourself
Create int[] fruits with numbers 4, 8, 12. Put the third number through its index.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework