Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: A java prog...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 12 Topic 16007 of 16268
Post > Topic >>

Re: A java program (MyHashTable)

by Lew <lew@[EMAIL PROTECTED] > Apr 22, 2008 at 10:08 PM

Roedy Green wrote:
> On Tue, 22 Apr 2008 09:02:26 -0700 (PDT), Andrew Marcus
> <mainhoonanjaane@[EMAIL PROTECTED]
> wrote, quoted or indirectly quoted someone
> who said :
> 
>> public  String ConverttoString() {
>>>>         StringBuffer s = new StringBuffer();
> 
> 
> ConverttoString should read convertToString.
> 
> See http://mindprod.com/jgloss/codingconventions.html

While they're at it, class "data" should be class "Data",

   static data PRESENT = new data();
should be either
   static Data present = new Data();
or just possibly
   final static Data PRESENT = new Data();

and

   Object NON_EXISTENT_KEY;
should be
   Object nonExistentKey;

Presumably initializing it to null is intentional.

All those one- and two-letter variable names should be longer and more 
self-explanatory, and begin with lower-case letters.

Also, see
<http://java.sun.com/docs/books/tutorial/java/javaOO/variables.html>
for advice about access modifiers.

-- 
Lew
 




 12 Posts in Topic:
A java program (MyHashTable)
Sagarika <SonamSenShar  2008-04-22 07:17:30 
Re: A java program (MyHashTable)
Sagarika <SonamSenShar  2008-04-22 07:32:30 
Re: A java program (MyHashTable)
GArlington <garlington  2008-04-22 08:30:08 
Re: A java program (MyHashTable)
Andrew Marcus <mainhoo  2008-04-22 09:02:26 
Re: A java program (MyHashTable)
Roedy Green <see_websi  2008-04-23 00:38:00 
Re: A java program (MyHashTable)
Lew <lew@[EMAIL PROTEC  2008-04-22 22:08:05 
Re: A java program (MyHashTable)
Roedy Green <see_websi  2008-04-22 17:40:25 
Re: A java program (MyHashTable)
"elhmbre@[EMAIL PROT  2008-04-22 18:06:18 
Re: A java program (MyHashTable)
Lew <lew@[EMAIL PROTEC  2008-04-22 22:07:59 
Re: A java program (MyHashTable)
GArlington <garlington  2008-04-23 06:06:41 
Re: A java program (MyHashTable)
GArlington <garlington  2008-04-24 05:46:35 
Re: A java program (MyHashTable)
Lew <lew@[EMAIL PROTEC  2008-04-24 19:42:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:47:53 CDT 2008.