Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Conversation Between khimmy and Shaun@SyncWeb

1 Visitor Messages

  1. Did you work out your problem? My hint about chars should have got you started. For instance, in your class, you could declare an array of type bytes, like:

    private static byte testBytes [] = { 72, 101, 108, 108, 111, 0 };

    Then you'll need a method of converting the bytes to characters, ie:

    public static char byteToChar(byte c)
    {
    return (char)c;
    }


    then it's a case of printing that out using format or printf. Have fun!

    Regards,

    Shaun.
Showing Visitor Messages 1 to 1 of 1