Write a program to arrange character array of size 10 in ascending or descending order in java
Answers
Answered by
2
Answer:
ᴩᴜʙʟɪᴄ ᴄʟᴀꜱꜱ ᴀꜱᴄᴇɴᴅɪɴɢ _ᴏʀᴅᴇʀ.
ɪɴᴛ ɴ, ᴛᴇᴍᴩ;
ꜱᴄᴀɴɴᴇʀ ꜱ = ɴᴇᴡ ꜱᴄᴀɴɴᴇʀ(ꜱyꜱᴛᴇᴍ.
ꜱyꜱᴛᴇᴍ. ᴏᴜᴛ. ᴩʀɪɴᴛ("ᴇɴᴛᴇʀ ɴᴏ. ᴏꜰ ᴇʟᴇᴍᴇɴᴛꜱ yᴏᴜ ᴡᴀɴᴛ ɪɴ ᴀʀʀᴀy:");
ɴ = ꜱ. ɴᴇxᴛɪɴᴛ();
ɪɴᴛ ᴀ[] = ɴᴇᴡ ɪɴᴛ[ɴ];
ꜱyꜱᴛᴇᴍ. ᴏᴜᴛ. ᴩʀɪɴᴛʟɴ("ᴇɴᴛᴇʀ ᴀʟʟ ᴛʜᴇ ᴇʟᴇᴍᴇɴᴛꜱ:");
ꜰᴏʀ (ɪɴᴛ ɪ = 0; ɪ < ɴ; ɪ++)
Answered by
0
public CLA array used in java
Similar questions
Science,
2 months ago
Environmental Sciences,
2 months ago
English,
5 months ago
English,
10 months ago
English,
10 months ago
Computer Science,
10 months ago