Skip to content

Instantly share code, notes, and snippets.

import static java.util.Collections.shuffle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public class PasswordGenerator {
private static final char[] NUMERIC = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
package com.gomaariiii.jax.ws.sample;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import javax.xml.bind.JAXB;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import java.util.Arrays;
public class StackMain {
public static void main(String[] args) throws Exception {
Stack st = new Stack();
st.push(1);
st.push(2);
st.push(3);
st.push(3);
st.push(3);
# 出力
echo 'helloworld' | awk '{print $1}'
# 指定の文字を出力
echo 'h e l l o w o r l d' | awk '{print $1}'
echo 'h e l l o w o r l d' | awk '{print $2}'
# 全ての文字を出力
echo 'h e l l o w o r l d' | awk '{print $0}'
echo 'h e l l o w o r l d' | awk '{print}'
Option Explicit
Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal ms As LongPtr)
Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Declare Function FindWindowEx Lib "user32.dll" Alias "FindWindowExA" _
(ByVal hwndParent As Long, ByVal hwndChildAfter As Long, _
ByVal lpszClass As String, ByVal lpszWindow As String) As Long
Declare Function SetWindowPos Lib "user32.dll" (ByVal hWnd As Long, ByVal hWndInsertAfter As Long, _
ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}