On 8/8/2010 10:21 AM, sunil sharma wrote:
> Hi Group
> 
> May i know how to initialize the character in java.

I probably don't understand your question. Do you mean this?


public class Foo {
    static char c = 'X';

    static char[] a = new char[] {
        'p',
        'q',
        'r'
    };

    public static void main(String args[]) {
        System.out.println(c);
        System.out.println(a[1]);
    }
}

-Pete

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to