Organizing classes in package explorer tab [message #1815255] |
Fri, 27 September 2019 18:13  |
Eclipse User |
|
|
|
Hello everyone,
I started this week learning java using Eclipse. So far so good.
I was wondering how could I organize my classe names in my explorer tab.
For instance, I have a series of classes named:
Exercise1
Exercise10
Exercise2
Exercise3
Exercise4
Exercise5
Exercise6
Exercise7
Exercise8
Exercise9
I would like to have Exercise10 class next to Exercise9. Is that possible? Do you have any tips/hints?
Thank you!
|
|
|
Re: Organizing classes in package explorer tab [message #1815276 is a reply to message #1815255] |
Sun, 29 September 2019 03:20  |
Eclipse User |
|
|
|
Given that sorting text is generally lexicographic, unless there were the option to use a collator that handles numeric substrings as numbers that are compared numerically, this is no way to achieve your sorting order with the numbering scheme you've chosen. If you always used a two-digit number, i,e., to support 01, 02, ...99, then a lexicographic sort will give you the desired order.
|
|
|
Powered by
FUDForum. Page generated in 0.08042 seconds