Skip to content

Instantly share code, notes, and snippets.

@yohaneowo
yohaneowo / getClassFee()
Created January 7, 2024 04:20
getClassFee()
public int getSpesificClassOptionFee(){
switch(this.classType){
case "Yoga":
if(this.equipmentRenting.equals("Yes")){
return 100;
}
else{
return 0;
}
case "Indoor-cycling":
@yohaneowo
yohaneowo / GymClass.java
Created January 5, 2024 14:26
GymClass.java
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;
@yohaneowo
yohaneowo / Tester.java
Last active January 5, 2024 14:25
Tester
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);
<!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>
/*