Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Notation of a byte literal?  (Read 1476 times)
0 Members and 1 Guest are viewing this topic.
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Posted 2005-09-19 21:39:27 »

Hi folks!

Is there a notation of a byte literal? E.g. now I need to write this:

1  
MicroIdentity id = new MicroIdentity((byte)7); 


I'd like to remove the cast to (byte). Something similar to float literals like 1.23f

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 151