public class MyList<E> {
private int size = 0;
private static final int DEFAULT_CAPACITY = 10;
private Object elements[];
public MyList() {
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
``` | |
CREATE DATABASE invoice; | |
CREATE USER 'invoice'@'localhost' IDENTIFIED BY 'invoice'; | |
GRANT ALL PRIVILEGES ON invoice . * TO 'invoice'@'localhost'; | |
FLUSH PRIVILEGES; | |
``` |
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
package com.example.alartest.DB; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
/** | |
* SQLiteOpenHelper helper | |
* @author canu |
<form accept-charset="UTF-8" action="/api" method="post">
<input id='{"amount": 100, "credit_card": { "number": "4111111111111111", "expiry": "2018-04-11"}}' name="json" type="hidden" />
<input name="commit" type="submit" value="送信!" />
</form>
class Settlement
attr_reader :url, :parameters
def initialize(&block)
instance_eval block.call
end
public class MainClass {
public static void main(String args[]) {
Holder<Duck> myDuck = new Holder<Duck>(new Duck());
myDuck.behaviour();
Holder<Dog> myDog = new Holder<Dog>(new Dog());
myDog.behaviour();