mirror of
https://github.com/System-End/APCSA.git
synced 2026-04-19 21:05:16 +00:00
21 lines
502 B
Java
21 lines
502 B
Java
/* Lesson 3 Coding Activity Question 3 */
|
|
|
|
import java.util.Scanner;
|
|
import shapes.*;
|
|
|
|
public class U5_L3_Activity_Three {
|
|
|
|
public static void updateNumSides(RegularPolygon polygon, int sides) {
|
|
polygon.setNumSides(sides);
|
|
}
|
|
|
|
/* Add the method updateNumSides here */
|
|
|
|
// You can uncomment and add to the main method to test your code
|
|
// You will need to remove/comment out this method before submitting your code
|
|
/*
|
|
public static void main(String[] args){
|
|
|
|
}
|
|
*/
|
|
}
|