joseleonweb

Untitled

Sep 21st, 2019
133
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ConversioExplicita {
  2.     public static void main (String[] args) {
  3.         double realLlarg = 300.0;
  4.         //Assignació incorrecta. Un real té decimals, no?
  5.         long enterLlarg = (long)realLlarg;
  6.         //Assignació incorrecta. Un enter llarg té un rang major que un enter, no?
  7.         int enter = (int)enterLlarg;
  8.         System.out.println(enter);
  9.     }
  10. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×