We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Java
  3. Introduction
  4. Java Datatypes
  5. Discussions

Java Datatypes

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • ashishdalal_yes
    3 years ago+ 0 comments

    IF INTEGER TOO LONG ,ERROR COMES FOR ANYONE:

    USE 'L' AT ENDING OF LONG.

    HERE'S HOW IT IS: if(x>=-9223372036854775808L && x<=9223372036854775807L )System.out.println("* long");

    AND UPVOTE IF IT HELPS YOU OUT.

    22|
    Permalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature