Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

ARRAYS AND STRINGS

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have another question and I don't even know how to get it started let alone do it. The quesiton is.
Create a class that holds three initialized StringBuffer objects; your first name, middle name, and last name. Create three new StringBuffer objects as follows:
- an object named EntireName that holds your three names, separated by spaces
- an object named LastFirst that holds your last name, a comma, a space, and your first name, in that order.
- an object named Signature that holds your first name, a space, your middly initial (not the entire name), a period, a space, and your last name
Display all three objects.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
StringBuffer sb = firstName + " " + middleName.substring(1) + ". " +lastName ;

Think about it.
[ August 08, 2004: Message edited by: Sonny Pondrom ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi J, welcome to JavaRanch.

Unfortunately, you have posted your Java In General questions in a Servlets forum.

This forum is for Servlets questions, and since you question is not about Servlets, I am going to move this to the Java In General (Beginner) forum.

Thanks

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic