Gist-related resources of Gist Fox API.
A single Gist object. The Gist resource is the central resource in the Gist Fox API. It represents one paste - a single text note.
The Gist resource has the following attributes:
- id
- created_at
List<String> list = new ArrayList<String>(); | |
list.add("a"); | |
list.add("b"); | |
list.add("c"); | |
list.add("d"); | |
ListIterator<String> listIterator = list.listIterator(2); | |
while (listIterator.hasNext()) | |
{ | |
System.out.println(listIterator.next()); |
package com.cr; | |
import static junit.framework.Assert.*; | |
import org.junit.Test; | |
public class LifeTest { | |
public abstract class Cell { | |
public abstract boolean isAliveOnTick(); | |
public abstract void addNeighbour(Cell neighbour); |
/* built with Studio Sketchpad: | |
* http://sketchpad.cc | |
* | |
* observe the evolution of this sketch: | |
* http://sketchpad.cc/sp/pad/view/ro.VNh0DUzwa1U/rev.390 | |
* | |
* authors: | |
* mustafa | |
* tayfun |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
import java.util.function.Supplier; | |
import static java.util.Objects.requireNonNull; | |
/** | |
* Rust inspired Result type which represents either success or failure | |
* | |
* @param <T> the success value type |
import com.google.common.eventbus.EventBus; | |
import com.google.common.eventbus.Subscribe; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.TypeLiteral; | |
import com.google.inject.matcher.Matchers; | |
import com.google.inject.spi.InjectionListener; | |
import com.google.inject.spi.TypeEncounter; | |
import com.google.inject.spi.TypeListener; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
package javaapplication1; | |
import java.math.BigInteger; | |
import java.util.UUID; | |
public class JavaApplication1 { | |
public static void main(String[] args) { | |
final UUID uuid = UUID.randomUUID(); | |
System.out.println("uuid=" + uuid.toString()); |