This file contains 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 P618 | |
{ | |
public static void main(String[] args) | |
{ | |
public static boolean equalityCheck(int[] n, int m) //I get the error here | |
{ |
This file contains 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
for (int i = 7; i <= 0; i--) | |
{ | |
if (i%2==0) | |
{ | |
int a = creditCard.charAt(i); | |
evenDigits = evenDigits + a; | |
} |
This file contains 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 re | |
CARDLIST = open('deck','r') | |
""" | |
opens a text file with a list of cards and quantities formatted as such: | |
22 ISLAND | |
47 ORNITHOPTER etc.. | |
""" |