Chapter 20 Java Utilities Package and Bit Manipulation (Dedicated web hosting)
Chapter 20 Java Utilities Package and Bit Manipulation 1167 239 container.add( new JScrollPane( displayArea ), 240 BorderLayout.CENTER ); 241 container.add( southPanel, BorderLayout.SOUTH ); 242 243 setSize( 540, 300 ); 244 setVisible( true ); 245 } 246 247 // execute application 248 public static void main( String args[] ) 249 { 250 HashtableTest application = new HashtableTest(); 251 252 application.setDefaultCloseOperation( 253 JFrame.EXIT_ON_CLOSE ); 254 } 255 256 } // end class HashtableTest 257 258 // Employee class to represent first and last name 259 class Employee { 260 private String first, last; 261 262 // initialize an Employee 263 public Employee( String firstName, String lastName ) 264 { 265 first = firstName; 266 last = lastName; 267 } 268 269 // convert Employee to String representation 270 public String toString() 27 { 27 return first + ” ” + last; 27 } 27 27 } // end class Employee Fig. 20.3 Demonstrating class Hashtable(part 6 of 6).
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services