Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️

Yash Totale YashTotale

🛠️
View GitHub Profile
@YashTotale
YashTotale / DiverseArray.java
Last active Mar 23, 2021
2015 AP Computer Science Exam FRQ #1
View DiverseArray.java
// FRQ #1: AP Computer Science Exam 2015
public class DiverseArray {
/**
* Part (a)
* Returns the sum of the entries in the one-dimensional array arr.
*/
public static int arraySum(int[] arr) {
int sum = 0;
for (int toSum : arr) {
@YashTotale
YashTotale / TwoDimensionalArrays.java
Last active Mar 23, 2021
TwoDimensionalArrays: AP Computer Science Assignment
View TwoDimensionalArrays.java
import java.util.Arrays;
public class TwoDimensionalArrays {
public static void main(String[] args) throws Exception {
TwoDimensionalArrays arrMethods = new TwoDimensionalArrays();
System.out.println("-----");
System.out.println("2D Array Methods\n");
// countVals
@YashTotale
YashTotale / MarioChar.java
Last active Mar 23, 2021
MarioChar: AP Computer Science Assignment
View MarioChar.java
import javax.swing.*;
import java.awt.*;
import java.util.*;
public class MarioChar {
String name;
//TODO: Add Superpower class
ArrayList<String> superpowers;
int x;
int y;