나만의 개발 기록
close
프로필 배경
프로필 로고

나만의 개발 기록

  • 분류 전체보기 (263)
    • backend (140)
      • 스프링 (91)
      • 코프링 (14)
      • 자바 (33)
      • 오류모음 (2)
    • frontend (26)
      • 자바스크립트 (14)
      • JSTL (2)
      • vue.js (5)
      • 타임리프 (5)
    • 데이터베이스 (4)
      • MYSQL (4)
    • native (16)
      • 안드로이드 (16)
    • DevOps (21)
      • AWS (4)
      • 젠킨스 (2)
      • Docker (2)
      • 깃허브 (1)
    • gis (26)
      • Openlayers (4)
      • LeafletJs (19)
      • 지오서버 (3)
    • 기타 (29)
      • 소프트웨어 설치 (9)
      • 자격증 (3)
      • 개발용어 (17)
  • 홈
  • 태그
  • 방명록

[JAVA] Math

Math.min 두수 중 더 작은수 출력 System.out.println(Math.min(10, 100)); 10 Math.max 두수 중 더 큰수 출력 System.out.println(Math.max(10, 100)); 100

  • format_list_bulleted backend/자바
  • · 2021. 5. 21.
  • textsms

[JAVA] toCharArray

String str = "Hello World"; char[] charArr = str.toCharArray(); [0] = H [1] = e [2] = l [3] = l [4] = o [5] = " " [6] = "W" [7] = "o" [8] = "r" [9] = "l" [10] = "d"

  • format_list_bulleted backend/자바
  • · 2021. 5. 20.
  • textsms

[JAVA] 최대공약수 GCD, 최소공배수 LCM 기본문법

GCD 최대공약수 int a= 10; int b = 2; BigInteger b1 = BigInteger.valueOf(a); BigInteger b2 = BigInteger.valueOf(b); BigInteger gcd = b1.gcd(b2); System.out.println(gcd.intValue()); 2 LCD 최소공배수 public static int lcm(int x, int y) { //0이 아닌 두 수의 곱 / 두 수의 최대공약수 return (x * y) / gcd(x, y); } private static int gcd(int a, int b) { if(b == 0) { return a; } return gcd(b, a % b); } System.out.println(lcm(a, b..

  • format_list_bulleted backend/자바
  • · 2021. 5. 18.
  • textsms

[JAVA] chatAt, SubString, Split 사용법

charAt 문자열 한글자씩 출력 String s = "무야호"; for(int i=0; i

  • format_list_bulleted backend/자바
  • · 2021. 5. 17.
  • textsms

[JAVA] String, int 배열, 다차원 배열 선언

String 배열 선언 String[] array1 = new String[] {"1"}; String[][] array2 = new String[][] {{"1", "2"}, {"3", "4"}}; [1] [[1, 2], [3, 4]] Int 배열 선언 int[] iarray1 = new int[] {1}; int[][] iArray2 = new int[][] {{1, 2}, {3, 4}}; [1] [[1, 2], [3, 4]]

  • format_list_bulleted backend/자바
  • · 2021. 5. 17.
  • textsms

[JAVA] 문자열 체크

문자열 특정 문자열 있는지 체크 (contains) String txt = "무야호" ; if(txt.contains("무야")) { System.out.println("문자열 있음!"); } else { System.out.println("문자열 없음!"); } 특정 문자열 있는지 체크 (indexOf) String txt = "무야호" ; if(txt.indexOf("무야") > -1) { System.out.println("문자열 있음!"); } else { System.out.println("문자열 없음!"); } 특정 문자열 있는지 체크 (matches) String txt = "무야호" ; if(txt.matches(".*무야.*")) { System.out.println("문자열 있음!");..

  • format_list_bulleted backend/자바
  • · 2021. 5. 14.
  • textsms
  • navigate_before
  • 1
  • 2
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (263)
    • backend (140)
      • 스프링 (91)
      • 코프링 (14)
      • 자바 (33)
      • 오류모음 (2)
    • frontend (26)
      • 자바스크립트 (14)
      • JSTL (2)
      • vue.js (5)
      • 타임리프 (5)
    • 데이터베이스 (4)
      • MYSQL (4)
    • native (16)
      • 안드로이드 (16)
    • DevOps (21)
      • AWS (4)
      • 젠킨스 (2)
      • Docker (2)
      • 깃허브 (1)
    • gis (26)
      • Openlayers (4)
      • LeafletJs (19)
      • 지오서버 (3)
    • 기타 (29)
      • 소프트웨어 설치 (9)
      • 자격증 (3)
      • 개발용어 (17)
최근 글
인기 글
최근 댓글
태그
  • #AJAX
  • #useragent
  • #Linux
  • #jstl
  • #형변환
  • #spring
  • #JavaScript
  • #CentOS
  • #java
  • #charAt
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바