์ „์ฒด ๊ธ€

๐Ÿ‘ฉ‍๐Ÿ’ป java, mysql, android, php, javascript๋ฅผ ๋‹ค๋ฃน๋‹ˆ๋‹ค
ยท Java
ํ’€์ด๋ฐฉ๋ฒ• 1. ๋ณ€๊ณก์  ๊ธฐ์ค€์œผ๋กœ ๋„ํ˜•์„ ์ž๋ฅธ๋‹ค 2. ์œ„ ์‚ผ๊ฐํ˜•์˜ ๋„ˆ๋น„๊ธธ์ด๋ฅผ ๊ธฐ์ค€์œผ๋กœ, ์•„๋ž˜ ์‚ผ๊ฐํ˜•์˜ ๋„ˆ๋น„๊ธธ์ด๋ฅผ ๊ตฌํ•œ๋‹ค. 3. ์ฃผ์˜ ! - ๋‘๋ฒˆ์งธ ๋ฐ˜๋ณต๋ฌธ์‹์—์„œ๋Š” i์™€ ๊ด€๋ จ์žˆ๋Š” ์‹์„ ์“ธ๊ฒƒ, ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด(๋งŒ์•ฝ number ๊ธฐ์ค€) ์‚ฌ๊ฐํ˜•์ด ๋งŒ๋“ค์–ด์ง import java.util.Scanner; public class ๋งˆ๋ฆ„๋ชจ { public static void main(String[] args) { int number = scan.nextInt();// ์Šค์บ”๊ฐ’์ด 1์ผ๋•Œ ๊ทธ๋ƒฅ *์ด ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ํ”ผํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด +1์„ ํ•ด๋„ ์ข‹๋‹ค int number = scan.nextInt(); int maxWidth = 2 * number -1; //1. ์œ„ ์‚ผ๊ฐํ˜• for (int i = 0; i < number; i++) { f..
ยท Java
์ž๋ฐ”์˜ ์ž…๋ ฅ๊ธฐ๋Šฅ(Scanner) ์ž๋ฐ”์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๋ช…๋ น์€ System.out์ด๊ณ , ๋ฐ์ดํ„ฐ๋ฅผ ์ž…๋ ฅ๋ฐ›์„๋•Œ๋Š” System.in์„ ์ด์šฉํ•ฉ๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฅผ ์ž…๋ ฅ๋ฐ›์„๋•Œ๋Š” ํ‘œ์ค€ JAVA API์ธ Scanner ํด๋ž˜์Šค๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค ์Šค์บ๋„ˆ ์‚ฌ์šฉ๋ฐฉ๋ฒ• 0. import java.util.Scanner; 1. ์Šค์บ๋„ˆ ๊ฐ์ฒด ์ƒ์„ฑ Scanner scan = new Scanner(System.in); 2.์ž…๋ ฅ๋ฐ›์„ ๋ฐ์ดํ„ฐ ํƒ€์ž…์— ๋”ฐ๋ฅธ ๋ฉ”์„œ๋“œ ํ˜ธ์ถœ scan.next(), scan.nextLine(), scan.nextInt(), scan.nextDouble() ๋“ฑ -next(): ๊ณต๋ฐฑ์„ ํฌํ•จํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ž์—ด์„ ์ž…๋ ฅ๋ฐ›์„ ๋•Œ -nextLine(): ๊ณต๋ฐฑ์„ ํฌํ•จํ•œ ๋ฌธ์ž์—ด์„ ์ž…๋ ฅ๋ฐ›์„ ๋•Œ -nextInt(): ์ •์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›์„ ๋•Œ -ne..
ยท Java
๋ช…์‹œ์  ํ˜•๋ณ€ํ™˜๊ณผ ๋ฌต์‹œ์  ํ˜•๋ณ€ํ™˜์€ ๋ฐ˜๋Œ€ ๊ฐœ๋…์ž…๋‹ˆ๋‹ค. ์ž๋™ํ˜•๋ณ€ํ™˜(๋ฌต์‹œ์  ํ˜•๋ณ€ํ™˜ Implicit Casting) ์ž‘์€ ๋ฐ์ดํ„ฐ ํƒ€์ž…์—์„œ ํฐ ๋ฐ์ดํ„ฐ ํƒ€์ž…์œผ๋กœ ๊ฐ’์ด ์ž๋™์œผ๋กœ ํ˜•๋ณ€ํ™˜๋˜๋Š” ๊ฒƒ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ์ด๋•Œ ๋ฐ์ดํ„ฐ์˜ ์†์‹ค์ด ์—†๊ฑฐ๋‚˜ ๋ฌด์‹œํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒฝ์šฐ ๋“ฑ์ด ํ•ด๋‹น๋ฉ๋‹ˆ๋‹ค. ex) ํฐ ๋ฐ”๊ตฌ๋‹ˆ์— ์ž‘์€ ์‚ฌ๊ณผ๋ฅผ ๋‹ด๋Š” ๊ฒฝ์šฐ ์ž๋™์œผ๋กœ ์ƒ์ˆ˜๋ถ€๋ถ„์ด float => double๋กœ ์ž๋™ ํ˜•๋ณ€ํ™˜์ด ์ผ์–ด๋‚ฉ๋‹ˆ๋‹ค. ๋” ํฐ ๋ฐ์ดํ„ฐ ํƒ€์ž…์ธ double์ด ๋” ์ž‘์€ ๋ฐ์ดํ„ฐ ํƒ€์ž…์ธ float ๋ณด๋‹ค ํ‘œํ˜„๋ฒ”์œ„๊ฐ€ ํฌ๋ฏ€๋กœ, ๋ณ€์ˆ˜์— ์ •๋ณด์†์‹ค ์—†์ด ๊ฐ’์„ ์ €์žฅํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ช…์‹œ์  ํ˜•๋ณ€ํ™˜(Explicit Casting) ํฐ ๋ฐ์ดํ„ฐ ํƒ€์ž…์—์„œ ์ž‘์€ ๋ฐ์ดํ„ฐ ํƒ€์ž…์œผ๋กœ ๊ฐ’์ด ๋ณ€ํ™˜๋˜๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค ์ด๋•Œ ๋ช…์‹œ์ ์œผ๋กœ ๋ณ€ํ™˜ ์—ฐ์‚ฐ์ž๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค! ์ด๋•Œ๋Š” ๋ฐ์ดํ„ฐ ์†์‹ค์ด ์ผ์–ด๋‚  ..
ยท Java
๋ณ€์ˆ˜๋„ ๋ฐ์ดํ„ฐ ํƒ€์ž…์ด ์žˆ๊ณ , ์ƒ์ˆ˜๋„ ๋ฐ์ดํ„ฐ ํƒ€์ž…์ด ์žˆ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์ด ์–ด๋–ค ์‹ค์ˆ˜๋ฅผ ์“ฐ๋ ค๊ณ  ํ•˜๋ฉด, ๊ธฐ๋ณธ์ ์œผ๋กœ double์„ ์“ฐ๊ณ , ๋งŒ์•ฝ float๋ฅผ ์“ฐ๊ณ  ์‹ถ๋‹ค๋ฉด F๋ฅผ ๋ถ™์—ฌ์ฃผ๋ฉด ๋œ๋‹ค. (์ฃผ์˜!, ์•„๋ž˜ ์˜ˆ์ œ๋“ค์€ ์ขŒํ•ญ๊ณผ ์šฐํ•ญ์˜ ๋ฐ์ดํ„ฐ ํƒ€์ž…์ด ์ผ์น˜ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋ช…์‹œ์  ํ˜•๋ณ€ํ™˜๋„ ๋ฌต์‹œ์  ํ˜•๋ณ€ํ™˜๋„ ์•„๋‹ˆ๋‹ค. F๋ผ๋Š” ๋ฌธ์ž๋ฅผ ๋ถ™์—ฌ์ฃผ์–ด์„œ, 2.2F๊ฐ€ float ํƒ€์ž…์ด๋ผ๊ณ  ๋ช…์‹œํ•ด์ฃผ์–ด์„œ ๋ฐ์ดํ„ฐ ํƒ€์ž…์„ ์„œ๋กœ ๋งž์ถฐ์ฃผ์—ˆ๋‹ค. ๐Ÿ” F๋ฅผ ๋ถ™์ธ ์ด์œ ๋Š”? ์ด์œ : 2.2๊ฐ€ ์‚ฌ์‹ค์€ ์ •ํ™•ํžˆ 2.2๊ฐ€ ์•„๋‹ˆ๊ณ , ์ด์ง„๋ฒ•์œผ๋กœ ๋ณ€ํ™˜ํ–ˆ์„๋•Œ ๋ฌดํ•œ์†Œ์ˆ˜๋กœ ๋์—†์ด ์ด์–ด์ง€๋Š”๋ฐ, ๊ทธ ๋ฌดํ•œ์†Œ์ˆ˜๊ฐ€ float ์œ ํšจ๋ฒ”์œ„์•ˆ์— ๋“ค์–ด์˜ค์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์—, ์›๋ž˜ ์ƒ์ˆ˜ 2.2์˜ ๋ฐ์ดํ„ฐ ํƒ€์ž…์€ double์ด๋‹ค. ํ•˜์ง€๋งŒ ์˜๋„์ ์œผ๋กœ float ๋ฐ์ดํ„ฐ ํƒ€์ž…์„ ์ƒ์ˆ˜ 2.2์— ์“ฐ๊ณ  ์‹ถ์–ด์„œ F๋ฅผ ๋ถ™์—ฌ์„œ ์ขŒ..
ยท React
https://colorhunt.co/ Color Palettes for Designers and Artists - Color Hunt Discover the newest hand-picked color palettes of Color Hunt. Get color inspiration for your design and art projects. colorhunt.co https://fonts.google.com/specimen/Permanent+Marker Permanent Marker - Google Fonts Permanent Marker represents the look and feel of a favorite writing instrument. fonts.google.com https://dri..
ยท Java
๋ณ€์ˆ˜๋ž€? RAM์— ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๊ธฐ ์œ„ํ•ด ํ• ๋‹น๋ฐ›์€ ๋ฉ”๋ชจ๋ฆฌ ๊ณต๊ฐ„ ์šฐ๋ฆฌ๋Š” ์ด ๋ฐ์ดํ„ฐ ํƒ€์ž…์„ ๋ช…์‹œํ•˜๋ฉด์„œ, ์ปดํ“จํ„ฐ์—๊ฒŒ ์–ด๋–ป๊ฒŒ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๊ณ  ์ฒ˜๋ฆฌํ•  ์ง€ ์•”์‹œํ•ด์ค€๋‹ค ์ด ๋ฐ์ดํ„ฐ ํƒ€์ž…์€ ํฌ๊ฒŒ ๊ธฐ๋ณธํ˜•๊ณผ ์ฐธ์กฐํ˜•์œผ๋กœ ๋‚˜๋‰œ๋‹ค. (1) ๊ธฐ๋ณธํ˜•(primitive type) : ์‹ค์ œ๊ฐ’์„ ์ €์žฅํ•œ๋‹ค. ๋ชจ๋“  ๊ฐ’ ํƒ€์ž…์€ ์Šคํƒ(stack)์— ์ €์žฅ๋œ๋‹ค ๋น„๊ฐ์ฒด ํƒ€์ž…์ด๋ฏ€๋กœ null ๊ฐ’์„ ๊ฐ€์งˆ ์ˆ˜ ์—†๋‹ค (๊ธฐ๋ณธ๊ฐ’์ด ์ •ํ•ด์ ธ ์žˆ์Œ) ๊ธฐ๋ณธํ˜• ํƒ€์ž… ์ •์ˆ˜ํ˜• byte short int long ์‹ค์ˆ˜ํ˜• float double ๋…ผ๋ฆฌํ˜• boolean ๋ฌธ์žํ˜• char ๋ฉ”๋ชจ๋ฆฌ์˜ ํฌ๊ธฐ 8bit(๋น„ํŠธ) 1byte 1024byte 1kilobyte 1024kilobyte 1megabyte 1024megabyte 1gigabyte 1024 gigabyte 1terabyt..
ยท Java
package chap_04; public class _08_NestedLoop { public static void main(String[] args) { //์ด์ค‘ ๋ฐ˜๋ณต๋ฌธ // ๋ณ„ (*) ์‚ฌ๊ฐํ˜• ๋งŒ๋“ค๊ธฐ /* ***** ***** ***** ***** ***** */ for (int i = 0; i < 5; i++) { //0~4ํšŒ๊นŒ์ง€ for (int j = 0; j
๊ฑฐ์˜ ํ•œ๋‹ฌ๋™์•ˆ์˜ ๋ฉ”์ธํ”„๋กœ์ ํŠธ๊ฐ€ ๋์ด๋‚ฌ๋‹ค. ํ”„๋ฆฌํ”Œ์ ๊ณผ ๋‹ค๋ฅด๊ฒŒ ๋ถ„์•ผ์„ ํƒ, ๊ธฐํš, ๊ฐœ๋ฐœ๊นŒ์ง€ ๋ชจ๋‘ ์šฐ๋ฆฌ ์†์œผ๋กœ ํ•ด์•ผํ–ˆ๊ธฐ๋•Œ๋ฌธ์— ์‹œ๊ฐ„์ด ๋งŽ์ด ๊ฑธ๋ ธ์ง€๋งŒ ๊ทธ๋งŒํผ ๊ฐ’์ง„ ์‹œ๊ฐ„์ด์—ˆ๋‹ค. ๋‹ค์Œ์€ ์šฐ๋ฆฌ '์ œ 10๊ธˆ์œต' ํŒ€์˜ '๋จธ๋‹ˆ๋ฉ”์ด๋“œ'๋ผ๋Š” ์„œ๋น„์Šค์ด๋‹ค. ๋จธ๋‹ˆ๋ฉ”์ด๋“œ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ํŽธ๋ฆฌํ•˜๊ฒŒ ์ž์‚ฐ์„ ์กฐํšŒํ•˜๊ณ , ์†Œ๋น„๋ฅผ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ๊ธˆ์œต ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. ์–ด๋ ค์šด ๊ธˆ์œต ๊ด€๋ฆฌ๋ฅผ ๋ ˆ๋ชฌ์—์ด๋“œ ๊ฐ™์ด ์‹œ์›ํ•˜๊ฒŒ ํ•ด๊ฒฐํ•ด์ฃผ๊ณ ์ž ์„œ๋น„์Šค ์ด๋ฆ„์„ ‘๋จธ๋‹ˆ๋ฉ”์ด๋“œ'๋กœ ์ง€์—ˆ๋‹ค ใ…‹ใ…‹ ๊นƒ ํ—ˆ๋ธŒ https://github.com/codestates-seb/seb44_main_010 GitHub - codestates-seb/seb44_main_010 Contribute to codestates-seb/seb44_main_010 development by creating an..
becky(์ง€์€)
Know yourself, follow your passion