|
-
Apr 10th, 2001, 05:13 AM
#1
Thread Starter
Frenzied Member
How do I define a constant in Java?
-
Apr 10th, 2001, 09:22 AM
#2
Lively Member
defining constants
Hey mark,
defining constants....
usually it must have static and final keywords and the variable are usually in all upper case. For example:
public static final double PI=3.141562 //close enough
Manoj
-
Apr 10th, 2001, 09:27 AM
#3
Thread Starter
Frenzied Member
Thanks sweetsupra
Its a bit long-winded isn't it!
-
Apr 10th, 2001, 09:37 AM
#4
Lively Member
longwinded
mark:
java is long winded
Manoj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|