The Artima Developer Community
Sponsored Link

Java Answers Forum
Login

1 reply on 1 page. Most recent reply: Oct 23, 2003 11:48 AM by Dar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Renata

Posts: 1
Nickname: renata
Registered: Oct, 2003

Login Posted: Oct 23, 2003 6:18 AM
Reply to this message Reply
Advertisement
Hi All,

How can i build a method in java that has a parameter with the complete name of a person
and build the users login name with name.inicials.

Ex: Tom Smith Jones and gives me the Login like this : Tom.TSJ

TKS in advance,


Dar

Posts: 9
Nickname: dar
Registered: Oct, 2003

Re: Login Posted: Oct 23, 2003 11:48 AM
Reply to this message Reply
Try to post whatever code you have so far so that we can see the direction you are heading. But here's a suggestion that might help with your problem.

Use the Tokenizer method of the String class to break the First, Middle, and Last name into 3 separate strings. Once you've done that, use some of the methods from the String class to read the first character of each word and concatenate them.

This might not be the most efficient way to do this, but it should work.

Flat View: This topic has 1 reply on 1 page
Topic: Any way to get source code from an .exe? Previous Topic   Next Topic Topic: Application in a server environment

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use