Skip to content

Instantly share code, notes, and snippets.

import java.util.*;
public class SchoolStats
{
//list holds scores in increasing order
ArrayList<Integer> scoreList = new ArrayList<Integer>();
//holds the total of A's, B's, etc
int[] studentScores = new int[4];//first spot is A, then B, etc
String[] letters = {"F","C","B","A"};
import java.util.*;
/*
* the MonthlyBudget class will be provided a limit (example, $200),
* a string array of items (netflix, gym membership, spotify premium, etc)
* a parallel int array of prices for each item (15, 50, 8, etc)
*
* The monthlyBudget class should also keep track of a current budget
* and
* a myItems arraylist that tracks items that fit in your budget
/*
* the MonthlyBudget class will be provided a limit (example, $200),
* a string array of items (netflix, gym membership, spotify premium, etc)
* a parallel int array of prices for each item (15, 50, 8, etc)
*
* The monthlyBudget class should also keep track of a current budget
* and
* a myItems arraylist that tracks items that fit in your budget
*
* You will create the entire MonthlyBudget class
print(dID)
var db = Firestore.firestore()
db.collection("bookings").whereField("UID", isEqualTo: dID).getDocuments() { (querySnapshot, err) in
if let err = err {
print("Error getting documents: \(err)")
} else {
for document in querySnapshot!.documents {
document.reference.delete()
}
private func unBook(hrs: String){
let calendar = Calendar.current
let components = calendar.dateComponents([.day], from: selectedDate)
let dayOfMonth = components.day
let components2 = calendar.dateComponents([.month], from: selectedDate)
let monthOfY = components2.month
#if canImport(UIKit)
extension View {
func hideKeyboard() {
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
}
}
#endif
//
// KeyboardHandler.swift
// te3st1
//
// Created by Episcopal Academy on 11/25/20.
// Copyright © 2020 Episcopal Academy. All rights reserved.
//
import Combine
import SwiftUI
<!DOCTYPE html>
<html>
<style>
#container {
width: 400px;
height: 400px;
position: relative;
background: yellow;
}
#animate {
public class PassingParameters
{
static int xs = 5;
public static void main(String[] args)
{
int y = 10;
sendY(y);
System.out.println("y " + y);