This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bookshelf; | |
public class BookShelf extends Shelf implements Queue { | |
@Override | |
public void enQueue(String title) { | |
shelf.add(title); | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package scheduler; | |
public class LeastJob implements Scheduler { | |
@Override | |
public void getNextCall() { | |
System.out.println("상담 전화를 순서대로 대기열에서 확보"); | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interfaceEx; | |
public interface Calc { | |
double PI = 3.14; | |
int ERROR = -999999999; | |
int add(int num1, int num2); | |
int substract(int num1, int num2); | |
int times(int num1, int num2); | |
int divide(int num1, int num2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gameLevel; | |
public class AdvancedLevel extends PlayerLevel { | |
@Override | |
public void run() { | |
System.out.println("빨리 달린다."); | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package customerpkg; | |
public class Customer { | |
protected int customerID; | |
protected String customerName; | |
protected String customerGrade; | |
int bonusPoint; | |
double bonusRatio; | |
public Customer() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cooperation; | |
public class Bus { | |
int busNumber; | |
int passengerCount; | |
int money; | |
public Bus(int busNumber) { | |
this.busNumber = busNumber; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.zerobase.fastlms.member.service.impl; | |
import com.zerobase.fastlms.admin.dto.MemberDto; | |
import com.zerobase.fastlms.admin.mapper.MemberMapper; | |
import com.zerobase.fastlms.admin.model.MemberParam; | |
import com.zerobase.fastlms.components.MailComponents; | |
import com.zerobase.fastlms.member.entity.Member; | |
import com.zerobase.fastlms.member.exception.MemberNotEmailAuthException; | |
import com.zerobase.fastlms.member.exception.MemberStopUserException; | |
import com.zerobase.fastlms.member.model.MemberInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.bind.annotation.GetMapping; | |
@RestController | |
public class IndexController { | |
@GetMapping("/hello") | |
public String index () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Pager { | |
private long totalCount; | |
private long showPageCount; | |
private long showPageBlockCount; | |
private long startPage; | |
private long endPage; | |
Pager(long totalCount) { | |
/* [초기 결정 값] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class CoordinateCalculate { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
boolean dupFlag = false; | |
int x = 0; | |
int y = 0; | |
int count = 0; |
NewerOlder