본문 바로가기

Programming

(259)
220607 - html ※ html 태그 설명 https://www.w3schools.com/ W3Schools Free Online Web Tutorials W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. www.w3schools.com 텍스트 관련 문법 줄바꿈 수평 줄 인용문 (들여쓰기됨) 입력 문구 그대로 화면에 표시 => 코드 복사, 설명할 때만 사용하기 (웹접근성X-음성안내 건너뜀) 주소, 전화번호 등 (시멘틱 태그)..
220603 - html 웹 표준 브라우저 상관없이 웹페이지 정상적으로 기능, 보여져야 함 => 웹 표준 기술이나 규칙 준수하여 제작 웹 접근성 신체, 환경적 조건에 관계없이 웹 접근하여 이용하도록 보장 (시각장애인) 오늘의 명언 시간이란.. 내일 죽을 것처럼 오늘을 살고 영원히 살 것처럼 내일을 꿈꾸어라 피자 햄버거 타코 Block 레벨 요소 / Inline 레벨 요소 Block : 가로 한줄 차지 (내용 길이 상관 X), div 그룹핑, 안에 Inline 포함 가능 Inline : 내용만큼 영역 차지 (줄바꿈 X), span 그룹핑, 안에 Block 포함 불가 convertico.com => 이미지파일 ico로 변환 (최근엔 jpg도 파비콘 가능) href="../" => 상위폴더로 돌아감 안 문자 => 소문자 권장 시작 태..
220531 - 안드로이드 구현 실습 (AlertDialog) seoultour (계속) xml http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MapsActivity" android:orientation="vertical"> m.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="match_parent"/> java package com.example.seoultour..
220530 - 안드로이드 구현 실습 (Scroll, Spinner, 구글맵 불러오기) 스크롤 수직 스크롤 http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> 수평 스크롤 http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pa..
220526 - 안드로이드 구현 실습 (투표, 다이어리) 명화 투표 (계속) 인기 1위 그림, 이름 resultActivity 화면에 띄우기 ※code-override methods : 메소드 종류 확인 xml : 메인 http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> xml : 2 http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andro..
220525 - 안드로이드 구현 실습 (멀티 액티비티, 성적 입력 계산, 투표) 220525 멀티 액티비티 자바파일 상위패키지 - new empty activity => 메인 - 결과 화면 연결 xml : main http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> xml : 2 http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" an..
220524 - 안드로이드 구현 실습 기차 예약 앱 : 체크박스 체크 시 아래 위젯들이 보임 / 라디오버튼 클릭 시 요금이 우측에 나타남 ex. KTX - 50000원 / 할인카드 소지시 20% 할인 기차 예약을 하시겠습니까? ㅁ 네 인원수 ___ ㅇ KTX ㅇ새마을호 ㅇ무궁화호 ㅁ할인카드 요금계산버튼 총 지불 요금은 ???원입니다 xml http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:gravity="center" tools:cont..
220519 - 자료구조(queue), IO 기반 입출력, 안드로이드 구현 실습 자료 구조 Queue 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 public class Message { private String command; private String to; public Message(String command, String to) { this.command=command; this.to=to; } public String getCommand() { return command; } public String getTo() { return to; } } import java.util.LinkedList; import java.ut..
220518 - 람다식, 컬렉션 프레임워크, 자료 구조 람다식 : 익명 함수 생성하기 위한 식 : 매개 변수를 가진 코드 블록 => 인터페이스의 익명 구현 객체 생성 => 구현 클래스 생성, 객체화 타겟 타입, 함수적 인터페이스 람다식 대입될 인터페이스 = 람다식의 타겟 타입 (대입될 인터페이스 종류에 따라 람다식 작성 방법 다름) 함수적 인터페이스 (@FunctionalInterface) : 단 하나의 추상메소드 선언 (람다식 조건) 매개변수 X, 리턴값 X 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 public interface Person { //추상메서드 public void info(); } public class PersonEx1 ..
220517 - 멀티스레드(상태 제어, 데몬스레드), 제네릭(제네릭 타입, 멀티타입파라미터, 제네릭 메소드, 상속 및 구현), 람다식 멀티 스레드 스레드 상태 제어 sleep() - 일시 정지 : 실행 중인 스레드 일정 시간 멈춤 하단 참고 yield() - 실행 양보 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 public class ThreadJob1_yield extends Thread{ public boolean stop=false; //종료 여부 public boolean work=tr..