List of usage examples for java.lang Long MAX_VALUE
long MAX_VALUE
To view the source code for java.lang Long MAX_VALUE.
Click Source Link
From source file:Main.java
public static void main(String[] args) { System.out.println(Long.MAX_VALUE); }
From source file:Main.java
public static void main(String[] args) { System.out.println(Long.MIN_VALUE); System.out.println(Long.MAX_VALUE); }
From source file:Main.java
public static void main(String[] args) { LongSupplier i = () -> Long.MAX_VALUE; System.out.println(i.getAsLong()); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.parallel().forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.sequential().forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.mapToDouble(n -> Math.sin(n)).forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.asDoubleStream().forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); b.map(n -> -n).forEach(System.out::println); }
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 1L, Long.MAX_VALUE, Long.MIN_VALUE); b.distinct().forEach(System.out::println); }