About 40,000 results
Open links in new tab
  1. ascending sort without using arrays in java - Stack Overflow

    This code has to enter 5 integers and then display them in ascending and descending orders without using arrays. But it gives me only the biggest number. How can i do it without arrays??

  2. Ascending and Descending Number Order in java - Stack Overflow

    System.out.print("Ascending Order: "); for(i=0;i<a;i++) for(j=0;j<a;j++) if(great[j]==i) System.out.print(num[j]+","); //there is a fixed value for each great[j] that is, from 0 upto …

  3. Java : Sort integer array without using Arrays.sort ()

    Write JAVA program that will input 10 integer values and display either in ascending or descending order. Note: Arrays.sort() is not allowed. This is the code I have come up with, it …

  4. Java Program to Sort the Elements of an Array in Ascending Order

    Nov 14, 2024 · Here, we will sort the array in ascending order to arrange elements from smallest to largest, i.e., ascending order. So the easy solution is that we can use the Array.sort method. …

  5. How to Sort an Array in Java Without Using the Sort() Method

    Feb 12, 2024 · In this article, we explore how to sort arrays in Java without using the sort function and delve into five distinct methods—Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, …

  6. Java Program to Sort Array in Ascending Order - Tutorial …

    In this article, we show you How to write a Java Program to Sort Array in Ascending Order without Built-in and using a Sort function.

  7. Java Program To Sort an Array in Ascending Order

    Mar 5, 2021 · In this approach, we will see how to use Arrays.sort() to sort an array in ascending order. The Arrays class of ‘java.util’ package provides the sort method that takes an array as …

  8. java - How to sort Integer digits in ascending order without

    Nov 28, 2015 · I'm trying to sort the digits of an integer of any length in ascending order without using Strings, arrays or recursion. Example: Input: 451467 Output: 144567 I have already …

  9. How to Sort Integer Digits in Ascending Order Without Using

    Learn how to sort the digits of an integer in ascending order without using strings or arrays, with detailed explanations and code examples.

  10. Java Sort integer array without using Arrays sort - Edureka

    Aug 2, 2022 · orderedNums[greater]=tenNums[indexL]; //ask if ascending or descending. System.out.print("Display order :\nA - Ascending\nD - Descending\nEnter your choice : "); …

Refresh