Computer Science, asked by krisharora1305, 5 months ago

Write a program to arrange character array of size 10 in ascending or descending order in java

Answers

Answered by Anonymous
2

Answer:

ᴩᴜʙʟɪᴄ ᴄʟᴀꜱꜱ ᴀꜱᴄᴇɴᴅɪɴɢ _ᴏʀᴅᴇʀ.

ɪɴᴛ ɴ, ᴛᴇᴍᴩ;

ꜱᴄᴀɴɴᴇʀ ꜱ = ɴᴇᴡ ꜱᴄᴀɴɴᴇʀ(ꜱyꜱᴛᴇᴍ.

ꜱyꜱᴛᴇᴍ. ᴏᴜᴛ. ᴩʀɪɴᴛ("ᴇɴᴛᴇʀ ɴᴏ. ᴏꜰ ᴇʟᴇᴍᴇɴᴛꜱ yᴏᴜ ᴡᴀɴᴛ ɪɴ ᴀʀʀᴀy:");

ɴ = ꜱ. ɴᴇxᴛɪɴᴛ();

ɪɴᴛ ᴀ[] = ɴᴇᴡ ɪɴᴛ[ɴ];

ꜱyꜱᴛᴇᴍ. ᴏᴜᴛ. ᴩʀɪɴᴛʟɴ("ᴇɴᴛᴇʀ ᴀʟʟ ᴛʜᴇ ᴇʟᴇᴍᴇɴᴛꜱ:");

ꜰᴏʀ (ɪɴᴛ ɪ = 0; ɪ < ɴ; ɪ++)

Answered by sharma16ruchika
0
public CLA array used in java
Similar questions