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
package main; | |
public class BlackJack { | |
public int play(int a, int b) { | |
if (a > 21 && b > 21) { | |
return -1; | |
} else if (a > 21) { | |
return b; | |
} else if (b > 21) { |
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
/* Marvel Heroes and Villains | |
Based on the website http://marvel.wikia.com/Main_Page | |
with popularity data from http://observationdeck.io9.com/something-i-found-marvel-character-popularity-poll-cb-1568108064 | |
and power grid data from http://marvel.wikia.com/Power_Grid#Power | |
Collected by: https://www.khanacademy.org/profile/Mentrasto/ | |
*/ | |
CREATE TABLE marvels (ID INTEGER PRIMARY KEY, | |
name TEXT, | |
popularity INTEGER, |