Java Long to Int longToInt(long d)

Here you can find the source of longToInt(long d)

Description

long To Int

License

Apache License

Declaration

public static int longToInt(long d) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int longToInt(long d) {
        int lo = 0;
        try {//from   w ww .j  a  va2  s  . co  m
            lo = Integer.parseInt(String.valueOf(d));
        } catch (Exception e) {
            lo = 0;
        }
        return lo;
    }
}

Related

  1. long2Int(final long v)
  2. long2int(final long[] a)
  3. Long2Int(long i)
  4. long2int(Long source)
  5. longToInt(final Long l, final String name, final int deflt)
  6. longToInt(Long l)
  7. longToInt(long l)
  8. longToInt(Long l)
  9. longToInt(long value)