computer science homework help?

Write a program that reads in three strings and sorts them lexicographically. For Java programs. He wants them to be numbers not words.

1 Answer

Relevance
  • EddieJ
    Lv 7
    1 month ago

    You can use the .compareTo () method to compare two strings.

Still have questions? Get answers by asking now.