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
dataLogger.getConnectionEventStream() | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe((e) -> {Toast.makeText(this, "Connection Event", ToastLength.Short).show();}); |
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
// Manifest attributes | |
@NoTitle | |
@Fullscreen | |
public class BookmarksToClipboardActivity extends Activity { | |
BookmarkAdapter adapter; | |
@InjectView(R.id.bookmarkList) | |
ListView bookmarkList; | |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:vm="clr-namespace:...;assembly=..." | |
xmlns:view="clr-namespace:...;assembly=..." | |
x:Class="..." | |
Title="Configure Group"> | |
<ScrollView> | |
<StackLayout Padding="20"> | |
<Label Text="Person 1" Font="Large"/> |
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
public class Errors | |
{ | |
public static void Main(String[] args) // Main to lowercase (main) | |
{ | |
String s = "Hello World!"; | |
int i = 0; | |
{ | |
if (s.equals(Hello World!)) // Hello World! -> "Hello World!" | |
System.out.println(s) // Semicolon at end |
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 net.davidculpepper; | |
import org.junit.Test; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.hamcrest.MatcherAssert.assertThat; | |
public class BowlingGameTest { | |
Game sut = new Game(); |
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
"C:\Program Files\Java\jdk1.6.0_43\bin\java" -ea -Didea.launcher.port=7535 -Didea.launcher.bin.path=C:\Users\dculpepper\AppData\Local\Android\android-studio\bin -Dfile.encoding=UTF-8 -classpath C:\Users\dculpepper\AppData\Local\Android\android-studio\lib\idea_rt.jar;C:\Users\dculpepper\AppData\Local\Android\android-studio\plugins\junit\lib\junit-rt.jar;C:\Users\dculpepper\tools\android-sdk\platforms\android-19\android.jar;C:\Users\dculpepper\tools\android-sdk\platforms\android-19\data\res;C:\Users\dculpepper\tools\android-sdk\tools\support\annotations.jar;C:\Users\dculpepper\AndroidStudioProjects\Junit\app\build\classes\debug com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @C:\Users\dculpepper\AppData\Local\Temp\idea_junit9104649713718414728.tmp @w@C:\Users\dculpepper\AppData\Local\Temp\idea_working_dirs_junit2819460746495918609.tmp -socket64471 | |
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter | |
at java.lang.Class.forN |
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
public class Keypad { | |
private String passcode; | |
private Dispatch police; | |
public Keypad(String passcode, Dispatch police) { | |
this.passcode = passcode; | |
this.police = police; | |
} | |
public boolean enterCode(String code) { |
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 com.example; | |
public class Fraction { | |
private int numerator; | |
private int denominator; | |
public Fraction() { | |
this.numerator = 1; | |
this.denominator = 1; | |
} |
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.Arrays; | |
import java.util.List; | |
public class EulerModel { | |
public int sumSquareDifference(List<Integer> nums) { | |
int sum = 0; | |
int sumOfSquares = 0; | |
for (int i : nums) { | |
sum += i; | |
sumOfSquares += (i * i); |
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.Arrays; | |
import java.util.List; | |
public class EulerModel { | |
public int sumSquareDifference(List<Integer> nums) { | |
int sum = 0; | |
int sumOfSquares = 0; | |
for (int i : nums) { | |
sum += i; | |
sumOfSquares += (i * i); |
NewerOlder