Example usage for java.lang Long MIN_VALUE

List of usage examples for java.lang Long MIN_VALUE

Introduction

In this page you can find the example usage for java.lang Long MIN_VALUE.

Prototype

long MIN_VALUE

To view the source code for java.lang Long MIN_VALUE.

Click Source Link

Document

A constant holding the minimum value a long can have, -263.

Usage

From source file:Main.java

public static void main(String[] args) {
    System.out.println(Long.MIN_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) {
    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);
}

From source file:Main.java

public static void main(String[] args) {
    LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE);

    b.flatMap(n -> LongStream.of(n)).forEach(System.out::println);
}