This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <color name="material_red50">#ffffebee</color> | |
| <color name="material_red100">#ffffcdd2</color> | |
| <color name="material_red200">#ffef9a9a</color> | |
| <color name="material_red300">#ffe57373</color> | |
| <color name="material_red400">#ffef5350</color> | |
| <color name="material_red500">#fff44336</color> | |
| <color name="material_red600">#ffe53935</color> | |
| <color name="material_red700">#ffd32f2f</color> |
This file contains hidden or 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
| try | |
| { | |
| Assert(Life.Real); | |
| Assert(Life.Fantasy); | |
| } | |
| catch(LandSlideException ex) | |
| { | |
| #region Reality | |
| while(true) | |
| { |
This file contains hidden or 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 DiceRoll { | |
| public static void main(String[] args) { | |
| // Get the java console scanner. Allows the user to type into the console. | |
| Scanner s = new Scanner(System.in); | |
| // Pull the contents from what the user said. Split the array at the "d". | |
| // The input will look like ex: 4d10 | |
| // Returns 4, 10 to the String array 'in'. |
This file contains hidden or 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
| private class TabListener<T extends Fragment> implements | |
| ActionBar.TabListener { | |
| private Fragment mFragment; | |
| private final Activity mActivity; | |
| private final String mTag; | |
| private final Class<T> mClass; | |
| // Constructor - set the variables up from when you call the method somewhere else | |
| public TabListener(Activity activity, String tag, Class<T> clz) { | |
| mActivity = activity; |
NewerOlder