1
Hello, I have a class teams where they have scores (int
), winning number (int
), defeats (int
) etc. Within the method main
, I have an array of 20 teams and need to sort them by the score, if the score is equal I check who has the most wins and need to print it on the screen. If anyone can help I’d be grateful.
Eduardo, welcome to Sopt. Go to Ajuda and take the Tour. For your question to be properly answered here, you need to post part of your code. The community helps, but it doesn’t do for us what we need. There are numerous and different possibilities of solving these broad questions, there needs to be "where to start" to be able to help you with a problem or difficulty.
– Leo