1. What's Amazon EC2?E2C in AWS stands for Amazon Elastic Compute Cloud = Infrastructure as a Serviceโถ EC2 is one of the most popular of AWS's offeringโถ EC2 is not a single service. โถ mainly consists in the capability of :- Renting virtual machines (EC2) ๊ฐ์๋จธ์ ์๋ ํ ์ ์๋๋ฐ ์ด๊ฑธ EC2 Instance ๋ผ๊ณ ํจ- Storing data on virtual drives (EBS) ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ๋๋ผ์ด๋ธ or EBS Volume์ ์ ์ฅ ํ ์ ์๋ค- Distrubuting load across ..
IAM Identity and Access Management- ์ฌ์ฉ์๋ฅผ ์์ฑํ๊ณ ๊ทธ๋ฃน์ ๋ฐฐ์นํ๊ธฐ ๋๋ฌธ์ Global Service- Root account created by default, shouldn't be used or shared - Users are people within your organization, and can be grouped- Groups only contain users, not other groups- Users don't have to belong to a group, and user can belong to multiple groups IAM: Permissions- Users or Groups can be assinged JSON documents called po..
ttps://www.tablesgenerator.com/html_tables HTML Tables generator – TablesGenerator.comYou can import table data by uploading file in CSV format (Comma Separated Value). Most spreadsheet software, both desktop and online, allows to save tabular data in CSV format — it is usually available in the File menu under the name "Save As..." or "Exwww.tablesgenerator.comํ๋ก ํธ์๋ ๊ฐ๋ฐ ์์
ํ์๋ค๋ณด๋ฉด ํ
์ด๋ธ์ ๋ง๋ค์ด์ผ ํ๋ ๊ฒฝ์ฐ๊ฐ..
โ
๋ฌธ์ 8์นธ ํฌํค์ ๋ฐฐ์ด์ ์ ์ธํ๊ณ ๋๋ค์๋ก ์ด๊ธฐํ ํ ํ ๊ฐ์ฅ ํฐ ์์ ์์ ์๋ฅผ ๊ฐ๊ฐ ์ถ๋ ฅํ์์ค. โ
์ถ๋ก ๊ณผ์ - Java์์ ๋๋ค ์๋ฅผ ์์ฑํ๊ธฐ ์ํด์๋ java.util.Random ํด๋์ค๋ Math.random() ๋ฉ์๋๋ฅผ ์ฌ์ฉํ๋ค.๋๋ค์๋ฅผ ๋์๋ผ๊ณ ๋ ํ๋ค. ์ฌ๊ธฐ์๋ java.util.Random ํด๋์ค์ newํค์๋๋ก ์์ฑ ๊ฐ๋ฅํ๋ค.- ๋๋ค์๋ฅผ ๋ด์ ์ค 8์นธ์ง๋ฆฌ ๋ฐฐ์ด์ ์์ฑํ๋ค. - ๊ทธ๋ฆฌ๊ณ ์ต์๊ฐ๊ณผ ์ต๋๊ฐ์ ๋ด์์ค intํ ๋ณ์ ๋ ๊ฐ๋ฅผ ์ ์ธํ๋ค. (int mim, max ์ ์ธ)- ๋ฐ๋ณต๋ฌธ for์ ๋๋ ค์ ๋๋คํ ์๋ฅผ 8๊ฐ ์์ฑํ๋ฉด์ ๋ฐฐ์ด ์ธ๋ฑ์ค 0๋ฒ๋ถํฐ 7๋ฒ๊น์ง ๋ด์ ์ค๋ค.- ์๋ฐ์์ ๋ฐฐ์ด์ ์ค๋ฆ์ฐจ์์ผ๋ก ์ ๋ ฌํ๋ ๋ฉ์๋๋ java.util.Arrays ํด๋์ค์ sort() ๋ฉ์๋์ด๋ค. ์ฌ๊ธฐ์..
๋ฐฐ์ด์ ์ผ๋ จ์ ๋์ผํ ์ ํ์ ๋ฐ์ดํฐ ์์๋ฅผ ๋ณด์ ํ๋ ๋ฐ์ดํฐ ๊ตฌ์กฐ์ด๋ฉฐ, ์๋ฐ์์ ๋งค์ฐ ์ ์ฉํ๊ฒ ์ฌ์ฉ๋ฉ๋๋ค. ์๋ฐ์์ ๋ฐฐ์ด์ ์์ฑํ๋ ๋ฐฉ๋ฒ์ ์ฌ๋ฌ ๊ฐ์ง๊ฐ ์์ต๋๋ค. ๋ค์์ ๊ฐ์ฅ ์ผ๋ฐ์ ์ธ ๋ฐฉ๋ฒ๋ค์
๋๋ค. 1. ๋ฐฐ์ด ์์ฑํ๊ธฐ 1) ๋ฐฐ์ด ๋ฆฌํฐ๋ด๋ก ์์ฑํ๊ธฐ ๋ฐฐ์ด์ ์ง์ ์ ์ํ๊ณ ๊ฐ์ ํ ๋นํ๋ ๋ฐฉ๋ฒ์
๋๋ค. int[] numbers = {1, 2, 3, 4, 5}; String[] names = {"John", "Doe", "Alice"}; 2) new ํค์๋๋ก ์์ฑํ๊ธฐ new ํค์๋๋ฅผ ์ฌ์ฉํ์ฌ ๋ฐฐ์ด์ ๋์ ์ผ๋ก ์์ฑํ ์ ์์ต๋๋ค. int[] numbers = new int[5]; // ํฌ๊ธฐ๊ฐ 5์ธ ์ ์ ๋ฐฐ์ด ์์ฑ String[] names = new String[3]; // ํฌ๊ธฐ๊ฐ 3์ธ ๋ฌธ์์ด ๋ฐฐ์ด ์์ฑ 3) ๋ฐฐ์ด์ ..
Java์์ ๋๋ค ์๋ฅผ ์์ฑํ๊ธฐ ์ํด์๋ java.util.Random ํด๋์ค๋ Math.random() ๋ฉ์๋๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๊ฐ๊ฐ์ ๋ํด ๊ฐ๋จํ ์ค๋ช
ํ๊ฒ ์ต๋๋ค. 1. java.util.Random ํด๋์ค import java.util.Random; public class Main { public static void main(String[] args) { Random random = new Random(); // ์ ์ํ ๋๋ค ์ ์์ฑ int randomNumber = random.nextInt(); System.out.println("๋๋ค ์ ์: " + randomNumber); // ๋ฒ์ ์ง์ ํ์ฌ ์ ์ํ ๋๋ค ์ ์์ฑ int randomInRange = random.nextInt(100); ..