Skip to content

Instantly share code, notes, and snippets.

View k-ioannis's full-sized avatar

k-ioannis

View GitHub Profile
package askhsh8;
import java.util.Scanner;
public class Askhsh8 {
public static void main(String[] args) {
int Xpos, Opos;
char pos[] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'};
System.out.println("INITIATING GAME...");
@k-ioannis
k-ioannis / Buyign Simulator
Created March 28, 2019 20:45
Buying Simulator (has a compilation error)
package askhsh7;
import java.util.Scanner;
import java.util.ArrayList;
public class Askhsh7 {
public void static main(String[] args) {
int[] passwords = {1, 2, 3, 4, 5, 6};
int[] quantities = {22, 5, 2, 4, 80, 1};