малка програма за упражнение на Java, за азбучно подреждане на думи?
Здравейте, събиране, би ли могъл някой да удари едно рамо с тази малка програма за практика на Java за последователна заявка на думи. Досега стигнах до хипотезата / структурата на chat avenue camzap bazoocam, но не знам дали самият аз да завърша ще се опитам да междинно.
---------
String x
Int y
For ( read input, )(
make list,)
For ( read list, position A, position B ?=lenght(), ? A++, B++) (
Case a-z=( A=1 to B=??)
compare <>( list(1).charAt(i)) to ( list(2).charAt(i)),
Assign listpositionB=bigger,
i++,
Continue,
)
System.printline(
For ( int p = 0, p<= list.lenght(), p++){
Println( list.position(p))
Hey, I'm extremely new to programming and was wanting to tackle a "project" in my spare time.
What I was looking to do was write a program that would take any inputted text and correctly alphabetize it. Like if a copy and pasted a paragraph into the program, it would reorder the words into alphabetical order.
I don't really know where to start, and any tips or help at all would be appreciated. I know it's probably really simple, but I don't really know what I'm doing.
Thanks!
Kroger Feed