Banner

My Tech Blog (๋ฒ„๋ธ”์ •๋ ฌ)

โœ… ๋ฌธ์ œ5๊ฐœ์˜ ์ •์ˆ˜๋ฅผ ์ž…๋ ฅ ๋ฐ›์•„ ์˜ค๋ฆ„์ฐจ์ˆœ ์ •๋ ฌํ•˜์—ฌ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ ๊ตฌํ˜„ํ•˜๊ธฐ โœ… ์ถ”๋ก  ๊ณผ์ •for๋ฌธ์„ ๋Œ๋ ค ์ธ๋ฑ์Šค ๊ฐ’์„ ๋น„๊ตํ•˜์ง€ ์•Š์•„๋„ Arrays.sort() ๋ฉ”์„œ๋“œ๋งŒ ์จ๋ฒ„๋ฆฌ๋ฉด ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ƒ๊ฐํ•  ํ•„์š” ์—†์ด ์‰ฝ๊ฒŒ ํ’€๋ฆฌ๋Š” ๋ฌธ์ œ์ด๋‹ค. ํ•˜์ง€๋งŒ ๋ฐฐ์šด๋Œ€๋กœ ๋ฌธ์ œ๋ฅผ ํ’€๋ ค๋ฉด for๋ฌธ์„ ๋Œ๋ ค์ค˜์•ผ ํ•˜๊ธฐ์—... ๋ฒ„๋ธ”์ •๋ ฌ ๋ฐฉ์‹์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์งฐ๋‹ค. โœ… ์ฝ”๋“œimport java.util.Arrays;import java.util.Scanner;public class bonus05 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] nums = new int[5]; for (int ..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'๋ฒ„๋ธ”์ •๋ ฌ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ