This file contains hidden or 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 Test03 { | |
public static void main(String[] args) { | |
long totalCount = 127; // 전체 게시글 수 | |
long pageIndex = 4; // 현재 페이지 번호 | |
long pageSize = 10; // 한 페이지당 보여지는 글의 수 | |
long pageBlock = 10; // 페이지 네비게이션에서 보여주는 블럭 수 | |
Pager pager = new Pager(totalCount, pageSize, pageBlock); | |
System.out.println(pager.html(pageIndex)); |
This file contains hidden or 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.*; | |
public class Test02 { | |
public static void main(String[] args) { | |
Test02 test = new Test02(); | |
test.run(); | |
} | |
public void run() { |
This file contains hidden or 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.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
public class Test01 { | |
public static void main(String[] args) { | |
StringBuilder sb = new StringBuilder(); |
This file contains hidden or 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.*; | |
//김용민 | |
public class JavaStudy08 { | |
public static void main(String[] args) { | |
JavaStudy08 javaStudy = new JavaStudy08(); | |
javaStudy.run(); | |
} |
This file contains hidden or 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.*; | |
//김용민 | |
public class JavaStudy07 { | |
public static void main(String[] args) { | |
JavaStudy07 javaStudy = new JavaStudy07(); | |
javaStudy.run(); | |
} |
This file contains hidden or 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.*; | |
//김용민 | |
public class JavaStudy06 { | |
public static void main(String[] args) { | |
JavaStudy06 javaStudy06 = new JavaStudy06(); | |
javaStudy06.run(); | |
} |
This file contains hidden or 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.Arrays; | |
import java.util.Calendar; | |
import java.util.Random; | |
import java.util.Scanner; | |
//김용민 | |
public class JavaStudy05 { | |
public static void main(String[] args) { | |
int inputYear = 0; |
This file contains hidden or 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.Random; | |
import java.util.Scanner; | |
//김용민 | |
public class JavaStudy04 { | |
public static void main(String[] args) { | |
String inputYearMonthDay = ""; | |
String inputGender = ""; |
This file contains hidden or 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 JavaStudy03 { | |
public static void main(String[] args) { | |
int age = 0; | |
int entryTime = 0; | |
boolean isPersonOfNationalMerit = false; | |
boolean hasWelfareCard = false; |
This file contains hidden or 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 JavaStudy02 { | |
public static void main(String[] args) { | |
System.out.println("[캐시백 계산]"); | |
System.out.print("결제 금액을 입력해 주세요.(금액):"); | |
Scanner sc = new Scanner(System.in); |
NewerOlder