• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Convert a linked list toUpper, and toLower?

Hey does java have anything built into the api that can convert a linked list  "toUpper" or/and  "toLower"? if so what is it? It would also be nice to see the non importing way to do it also if its not to hard. Thanks
0
theldro
Asked:
theldro
  • 2
1 Solution
 
ksivananthCommented:
yes but not in list but in String

you need to travers the list and update each element
0
 
ksivananthCommented:
for e.g.,

for( int i = 0; i < list.size(); i++ ){
 list.set( i, list.get( i ).toUpperCase() ) ;
}
0
 
theldroAuthor Commented:
Thanks I thought it might be something like that, but wasnt sure if the linked list class had its own method built into the api or not. Thanks a lot for help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now