현실을 넘어
close
프로필 배경
프로필 로고

현실을 넘어

  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
  • 홈
  • 태그
  • 방명록

[팁] compareTo 기준점

compareTo 기준 어느 쪽을 기준으로 정렬되는 건지 알기 어려울때..두 사람의 키 를 비교하는 것과 비슷하다.1. 첫번 째 사람의 키가 더 크다면compareTo 의 결과 양수키 큰놈이 더 뒤로 간다.2. 두 사람의 키가 동일comapreTo 결과 03. 첫 번째 사람의 키가 더 작다면compareTo 결과 음수 키 작은 놈이 앞으로 온다. Uploaded by N2T

  • format_list_bulleted 자바/일반
  • · 2024. 2. 19.
  • textsms

[프로그래머스] 행렬의 덧셈 (Java)

package org.example.알고리즘.행렬의덧셈; import java.util.Arrays; /**/ class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(Arrays.deepToString(solution.solution(new int[][]{{1, 2}, {2, 3}}, new int[][]{{3, 4}, {5, 6}}))); } public int[][] solution(int[][] arr1, int[][] arr2) { ArrayClass arrayClass1 = new ArrayClass(arr1); ArrayClass arrayClass..

  • format_list_bulleted 자바/알고리즘
  • · 2024. 1. 14.
  • textsms
[GIT]GITHUB CLI 로 내 리포지터리 전부 PRIVATE 으로 변경하기

[GIT]GITHUB CLI 로 내 리포지터리 전부 PRIVATE 으로 변경하기

GITHUB CLI 설치 필 윈도우 기준입니다. CHOCOLATEY 를 설치해두면 편하게 설치가능합니다. chocolatey 설치 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) github cli 설치 choco install gh PowerShell 키셈 깃헙 로그인 gh au..

  • format_list_bulleted 일 관련 삽질
  • · 2023. 11. 29.
  • textsms

[코틀린인액션] 맵 과 리스트 이터레이션

Map 에 대한 이터레이션fun main() { val binaryReps = TreeMap() for (c in 'A'..'F') { val binary = Integer.toBinaryString(c.code) // 'A'.code == 65 ==> 이진표현값으로 binaryReps[c] = binary // binaryReps.put(c, binary) } for ((letter, binary) in binaryReps) { println("$letter = $binary") } }자바에서의 TreeMap 과 구조가 거의 비슷합니다.해당 코드는 A ~ F 까지의 이진값을 맵구조에 저장합니다.트리맵은 map 구조의 키 에 정렬을 줄 수 있다는 장점이 있습니다리스트(List) 에 대한 이터레이션과 인덱..

  • format_list_bulleted 코틀린/코틀린인액션
  • · 2023. 11. 26.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
  • ㅇ
전체 카테고리
  • 분류 전체보기
    • 자바
      • 일반
      • 알고리즘
      • 객사오
      • 스프링입문객체지향
      • 리팩토링
      • 스프링부트3
      • JPA
      • QueryDsl
      • Spring Security
    • 코틀린
      • 코틀린인액션
      • 알고리즘
    • 일 관련 삽질
    • JIRA
    • 도메인주도개발
    • DB
      • Mysql
    • MQ
      • Apache Kafka
    • Docker-Kubernetes
    • GITHUB
    • REST API
    • 리눅스
최근 글
인기 글
최근 댓글
태그
  • #알고리즘
  • #객체지향
  • #Kotlin
  • #리팩토링
  • #객사오
  • #QueryDSL
  • #도메인주도개발
  • #ddd
  • #JPA
  • #자바
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바