This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public int getSpesificClassOptionFee(){ | |
| switch(this.classType){ | |
| case "Yoga": | |
| if(this.equipmentRenting.equals("Yes")){ | |
| return 100; | |
| } | |
| else{ | |
| return 0; | |
| } | |
| case "Indoor-cycling": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class GymClass { | |
| private String classType; | |
| private String equipmentRenting; | |
| private String danceType; | |
| private String vantilation; | |
| private String className; | |
| private String classLevel; | |
| private int classHours; | |
| private String instructureName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Tester { | |
| public static void main(String[] args) { | |
| GymClass gymClass1 = new GymClass("D", "Zumba fitness", "moderate", "Rita", 2, "", "Zumba", ""); | |
| gymClass1.setClassHours(3); | |
| System.out.println(gymClass1.getClassReservationInfo()); | |
| System.out.println(gymClass1.getReservationID()); | |
| GymClass.resetReservationID(); | |
| GymClass gymClass2 = new GymClass("D", "Zumba fitness", "moderate", "Rita", 2, "", "Zumba", ""); | |
| gymClass1.setClassHours(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <link rel="icon" type="image/x-icon" href="/favicon.ico"> | |
| <title>Rebane's Discord Colored Text Generator</title> | |
| <meta charset="UTF-8"> | |
| <meta name="description" content="Rebane's Discord Colored Text Generator"> | |
| <meta name="author" content="rebane2001"> | |
| <style> | |
| /* |