Download presentation
Presentation is loading. Please wait.
1
Java
2
PRACTICE 1 (Selecting geometric figures) Write a program that draws various figures. The user selects a figure from a radio button and specifies whether it is filled in a check box. FigurePanel Panel with FlowLayout
3
PRACTICE 2 (Summing series) Write a recursive method to compute the following series:
4
PRACTICE 3 (Summing the digits in an integer using recursion) Write a recursive method that computes the sum of the digits in an integer. Use the following method header: public static int sumDigits(long n) For example, sumDigits(234) returns = 9.
5
PRACTICE 4 (Finding the largest number in an array) Write a recursive method that returns the largest integer in an array.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.