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
#include <tuple> | |
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
class Person { | |
std::string first_name_; | |
std::string last_name_; | |
int age_; | |
public: |
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
#include <tuple> | |
#include <string> | |
class Person { | |
std::string first_name_; | |
std::string last_name_; | |
int age_; | |
public: | |
Person() = default; | |
Person(const Person&) = default; |
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 EnumAnagramGen { | |
public static void main( String[] args ) { | |
for ( String str : new String[] { "いなむのみたま" }) { | |
try (java.util.stream.Stream<?> stream = java.util.stream.Stream.of().onClose( | |
() -> java.util.stream.Stream.<java.util.List<String>>of( | |
java.util.Arrays.<String>asList(str.split("")) | |
).peek( | |
e -> java.util.Collections.shuffle(e) | |
).forEach( | |
e -> e.stream().forEach(t -> java.lang.System.out.printf(t)) |
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.lang.System; | |
import java.util.List; | |
import java.util.Arrays; | |
import java.util.Collections; | |
public class Generator { | |
public static void main(String[] args){ | |
String str = "いなむのみたま"; | |
List<String> array = Arrays.<String>asList(str.split("")); | |
Collections.shuffle(array); |
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 Generator { | |
public static void main(String[] args){ | |
String str = "いなむのみたま"; | |
java.util.List<String> array = java.util.Arrays.<String>asList(str.split("")); | |
java.util.Collections.shuffle(array); | |
array.stream().forEach(e->java.lang.System.out.printf(e)); | |
} | |
} |
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 Generator { | |
public static void main(String[] args){ | |
for ( String str : new String[] { "いなむのみたま" }) { | |
java.util.List<String> array = java.util.Arrays.<String>asList(str.split("")); | |
java.util.Collections.shuffle(array); | |
array.stream().forEach(e->java.lang.System.out.printf(e)); | |
} | |
} | |
} |
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 Generator { | |
public static void main(String[] args){ | |
for ( String str : new String[] { "いなむのみたま" }) { | |
java.util.stream.Stream.<java.util.List<String>>of( | |
java.util.Arrays.<String>asList(str.split("")) | |
).peek( | |
e -> java.util.Collections.shuffle(e) | |
).forEach( | |
e -> e.stream().forEach(t -> java.lang.System.out.printf(t)) | |
); |
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 Test { | |
public static <T> T do_something(java.util.function.Consumer<T> cons, T a){ | |
cons.andThen(/*ここをモック化したい*/).accept(a); | |
return a; | |
} | |
} |
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.function.Function; | |
class Interval<T extends Number> implements IntervalExtended | |
{ | |
private Class<? extends Number> type; | |
private T lower; | |
private T upper; | |
public Interval() {} |
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
// 宣言 | |
/* | |
[Note : 宣言は何回でも書ける | |
- end note] | |
*/ | |
class Hoge; | |
class Hoge; | |
class Hoge; | |
void f(); |