Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1,5 +1,5 @@
|
|||
public class Count{
|
||||
public static void main(String[] args){
|
||||
public class Count {
|
||||
public static void main(String[] args) {
|
||||
for(long i = 1; ;i++) System.out.println(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import java.math.BigInteger;
|
||||
|
||||
public class Count{
|
||||
public static void main(String[] args){
|
||||
public class Count {
|
||||
public static void main(String[] args) {
|
||||
for(BigInteger i = BigInteger.ONE; ;i = i.add(BigInteger.ONE)) System.out.println(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
8
Task/Integer-sequence/Java/integer-sequence-3.java
Normal file
8
Task/Integer-sequence/Java/integer-sequence-3.java
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import java.util.stream.LongStream;
|
||||
|
||||
public class Count {
|
||||
public static void main(String[] args) {
|
||||
LongStream.iterate(1, l -> l + 1)
|
||||
.forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
10
Task/Integer-sequence/Java/integer-sequence-4.java
Normal file
10
Task/Integer-sequence/Java/integer-sequence-4.java
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import static java.math.BigInteger.ONE;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Count {
|
||||
public static void main(String[] args) {
|
||||
Stream.iterate(ONE, i -> i.add(ONE))
|
||||
.forEach(System.out::println);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue