분류 전체보기(192)
-
서로 다른 클래스의 메서드 선언_java
1. public class JavaBasicEx01 { public static void main(String[] args) { /************************************************ * 실습. 아래의 구현체를 보고 각 클래스와 메서드를 선언하도록 하여라. ************************************************/ MyCarMove mc = new MyCarMove(); mc.setCarInfo("소나타", "검정"); MyCar m = mc.getMyCar(); System.out.println("모델 : " + m.getCarName()); // 소나타 System.out.println("색상 : " + m.getCarColor());..
2022.02.20 -
배열실습_java
1. 아래의 배열에 담긴 값의 평균을 구하여라 package kr.or.ksmart; public class JavaBasicEx01 { public static void main(String[] args) { int[] inArray = { 13, 25, 33, 45, 55 }; } } 2. 합산값의 원소 백분율을 구하여라 일부값/전체값*100 1. 답 package kr.or.ksmart; public class JavaBasicEx01 { public static void main(String[] args) { int[] inArray = { 13, 25, 33, 45, 55 }; float sum = 0; float avg = 0; for (int i = 0; i < inArray.length; ..
2022.02.20 -
MySQL개발환경 구축_sql
DBMS 다운로드 http://oracle.com/ 더보기 HeidiSQL 서버 설치 더보기 MySQL DBA root 로그인 더보기 DB 생성 create database dev42db; 데이터베이스 dev42db 를 생성한다. 접근부여 grant select,insert,update,delete,create,drop,alter ON dev42db.* to 'dev42id'@'localhost' identified by 'dev42pw'; 권한부여 select, insert, update, delete, create, drop, alter dev42db 모든 테이블에 아이디 dev42id 패스워드 dev42pw 일반 사용자 계정으로 로그인
2022.02.20 -
springboot 백업_sts
Import 불러올 파일 선택 Export 저장 할 위치 선택
2022.02.20 -
@Service @Autowired 어노테이션, ModelAndView_sts
@Service 해당 클래스를 루트 컨테이너에 Bean 객체로 생성해주는 어노테이션 패키지 ksmart.hellospringboot.service 클래스 KsmartService package ksmart.hellospringboot.service; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.GetMapping; @Service public class KsmartService { @GetMapping("/ksmartView") public String ksmart(String level) { String result=""; if(level !=null && level.equals(..
2022.02.20 -
클래스 선언, 접근지정자, 객체 생성_java
클래스 선언 데이터를 저장 할 수 있는 구조 생성 - 생태, 특성 값을 저장하는 공간 - 필드, 프로퍼티, 속성, 멤버변수, 인스턴스 변수 //Class 키워드로 클래스 선언 //접근지정자 형 식별자 Class MyClass01{ String name; //접근지정자 리턴타입 메서드명(매개변수){ } public void MyClass02(){ int age; } //기능 void print(){ System.out.println(name+"
2022.02.17