This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a simple problem regarding strings  RSS feed

 
gayathriy Nandakumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..how do i create a unique number for each string entered by the user and display it..
 
Dan Grieve
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you use an array to store the string(s) entered by the user? That way you would be setting a unique number and they'd all be stored for easy access.

There's plenty of tutorials out there on arrays.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!