본문 바로가기

반응형

분류 전체보기

(347)
HTML CSS 연습 헤더영역 로고영역 NOWON 메인메뉴 메뉴1 메뉴2 메뉴3 메뉴4 유저메뉴 회원가입 로그인 메인영역 메인컨테츠가 들어갈 영역입니다. 푸터영역 푸터의 내용이 들어갈 영역입니다. @charset "UTF-8"; *{ margin: 0; padding: 0; } a{ text-decoration: none; /* color:black; */ color: #000; /* color: rgb(0,0,0); */ } li{ list-style: none; } h1{ position : absolute; left: -999px; } /* /////////////////////////////////////////////// */ /* ////////////////////common/////////////////////..
3월 16일 생성자 D@101 주소 참조한 뒤 인덱스 번호만큼 메모리 연산하는 것. returnType nameOfMethod (Parameter List) { // method body } package day0316; public class ArrayTest13 { public static void main(String[] args) { int n; // stact double a; double[] num;//스택메모리 4바이트 할당,:heap메모리 참조하는 변수 num = new double[10]; //힙메모리에 할당 8*10 int[] num2; num2=new int[5]; System.out.println(num.length); System.out.println(num); System.out.println(nu..
3월 15일 배운 것 2차원 배열 package day0315; public class Array2Test02 { public static void main(String[] args) { int arr[][] = {{1,2,3},{4,5,6}}; for(int i=0;i
2022년 3월 14일 배열 package arrays; import java.util.Scanner; public class ArrayTest03 { public static void main(String[] args) { int kor, eng, mat, tot; double avg; Scanner in = new Scanner(System.in); System.out.println("국어 : "); kor = in.nextInt(); System.out.println("영어 : "); eng = in.nextInt(); System.out.println("수학 : "); mat = in.nextInt(); in.close(); tot = kor+eng+mat; avg=(double)tot/3; System.out.println..
스택과 힙의 차이 스택 : 정적 메모리 힙 : 동적 메모리 스택은 함수, 지역변수, 매개변수가 저장되며 LIFO 방식으로 관리된다. 힙은 전역변수를 다루고, 사용자가 직접 관리해야 하는 메모리 영역이다.
3월 12일 배운 것 package loop; public class DoWhileTest01 { public static void main(String[] args) { // do{} while(); // do는 일단 무조건 한 번 하고, while 문 조건에 따라서 한다. // 메뉴 구성할 때 등등 do { } while(false); } } package loop; import java.util.Scanner; public class DoWhileTest01 { public static void main(String[] args) { // do{} while(); // do는 일단 무조건 한 번 하고, while 문 조건에 따라서 한다. // 메뉴 구성할 때 등등 Scanner in = new Scanner(System..
Array Introduction for Java Array's Size - In C language, array has a fixed size meaning once the size is given to it, it cannot be changed i.e. you can’t shrink it neither can you expand it. Advantages of using arrays: - Arrays have better cache locality that makes a pretty big difference in performance. - Arrays represent multiple data items of the same type using a single name. Disadvantages of using arrays: - You can’t..
Permaculture—Scientific Evidence of Principles for the Agroecological Design of Farming Systems Open AccessReview Permaculture—Scientific Evidence of Principles for the Agroecological Design of Farming Systems by Julius Krebs 1,* and Sonja Bach 2 1 Institute for Environmental Science, University of Koblenz-Landau, 76829 Landau, Germany 2 Landscape Ecology and Environmental Systems Analysis, Institute of Geoecology, Technical University Braunschweig, 38106 Braunschweig, Germany * Author to ..

반응형