Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
import java.util.function.*;

class Main {
  public static void main(String[] args) {
    
    IntFunction<Integer> f = x->{int t=0;for(;x>0;x/=2)t=t*2+x%2;return t;};
    
    System.out.println(f.apply(14));
  }
}