+ 3

Guys please help me with this because I don't really understand the flow of my code. Please help I just want the flow chart

mport java.util.Scanner; // Compiler version JDK 11.0.2 class Dcoder { public static void main(String args[]) { int arr[] = new int [8]; Scanner sc = new Scanner(System.in); System.out.print("Enter 8 Digits (Separate with space):"); for(int i = 0; i < arr.length; i++) { arr[i] = sc.nextInt(); } int temp = 0; for(int i = 0; i < arr.length; i++) { for(int j = i + 1; j < arr.length; j++) { if (arr[i] > arr[j]) { temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } for(int i = 0; i < arr.length; i++){ System.out.print(arr[i] + " "); } } }

28th Nov 2019, 12:57 PM
Nerb
Nerb - avatar
10 Respuestas
+ 3
Nerb I asked you to put it here. Ok forget it. Edit: What you have done is a bubble sort. Kindly search the net for a better diagrammatic representation of it. https://code.sololearn.com/ciDcyX9bJp2p/?ref=app
28th Nov 2019, 1:17 PM
Avinesh
Avinesh - avatar
+ 3
Open your code and you can see a share symbol on top, copy the link and paste it here in your question.
28th Nov 2019, 1:07 PM
Avinesh
Avinesh - avatar
+ 2
Nerb Now copy paste this code on your code playground, save it and share the link of the code in your post. It would be easy for the community to rectify the errors.
28th Nov 2019, 1:03 PM
Avinesh
Avinesh - avatar
+ 2
Hehe. THANK YOU VERY MUCH.. I'm just a newbie.. hehe.. sorry
28th Nov 2019, 1:18 PM
Nerb
Nerb - avatar
+ 1
I just did post it a while ago.
28th Nov 2019, 1:05 PM
Nerb
Nerb - avatar
+ 1
Thanks.. I just posted it on my wall
28th Nov 2019, 1:16 PM
Nerb
Nerb - avatar
+ 1
I just really want the flow chart of this program of mine.. please help me 😅😅
28th Nov 2019, 1:22 PM
Nerb
Nerb - avatar
0
Yee babi
29th Nov 2019, 3:05 AM
Ipung Cahyo P.Z
Ipung Cahyo P.Z - avatar
0
hmm
30th Nov 2019, 11:15 AM
Zelimhan
Zelimhan - avatar