Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

decimal/octal/hexadecimal in Java

Name: Anonymous 2009-02-06 6:23

int decVal = 26;     // The number 26, in decimal
int octVal = 032;     // The number 26, in octal
int hexVal = 0x1a;    // The number 26, in hexadecimal

like is there any speed advantage in what you choose?

Name: Anonymous 2009-02-06 21:41

All of these are shitty amateur hacks, and nothing more. Real Java Programmers use an AbstractConstantsFactoryFactorySingleton, an associated XML loader, and retrieve their constants from a dynamically generated file on their Enterprise Edition Constants Server which allows increased flexibility of the code and easy redeployment on any system throughout the world while keeping a realtime-equivalent performance and maximizing their productivity through their object-oriented frameworks.

Name: Anonymous 2009-02-06 22:02

Please don't make troll posts.  Thank you.

Name: Anonymous 2011-11-24 11:53

>>22
nice doubles bro

Name: Anonymous 2011-11-24 12:05

Thanks

Name: Anonymous 2011-11-24 13:09


>cat anus.java
public class anus
{
    public static void main(String args[])
    {
        int decVal = 26;
        int octVal = 032;
        int hexVal = 0x1a;
    }
}
>javap -c anus
Compiled from "anus.java"
public class anus extends java.lang.Object{
public anus();
  Code:
   0:   aload_0
   1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
   4:   return

public static void main(java.lang.String[]);
  Code:
   0:   bipush  26
   2:   istore_1
   3:   bipush  26
   5:   istore_2
   6:   bipush  26
   8:   istore_3
   9:   return

}



it doesn't make a difference.

Name: Anonymous 2011-11-24 13:40

Java
GC is shit.

>>23
no shit, matlock

Name: Anonymous 2011-11-24 16:07

>>24
If it ain't GC, it's crap.

Name: Anonymous 2011-11-24 19:02

>>19-chan, daisuki!

My programs are so sugoi now.

Name: Anonymous 2012-11-25 14:32


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List