plzz help me how can i do the 3 sorting in 1 program user input
using bufferedReader plzzz...
bubble sort
slection sort
insertion sort
rayvarde
0
Newbie Poster
Recommended Answers
Jump to PostYour question is not clear.
Specify what exactly you want to say..
Jump to PostOk..
Read the user input (elements that are to be sorted ) into an array..
Then read the choice of the menu..BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int choice=Integer.parseInt(br.readLine());
Now using switch - case , write your actual sorting technique code in the appropriate cases.
All 6 Replies
harinath_2007
56
Posting Whiz
rayvarde
0
Newbie Poster
Ashley256
0
Newbie Poster
harinath_2007
56
Posting Whiz
harinath_2007
56
Posting Whiz
rayvarde
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.