가보자고

가보자고

  • 분류 전체보기 (129)
    • Spring 강의 (24)
      • section1 (4)
      • section2 (2)
      • section3 (5)
      • section4 (2)
      • section5 (3)
      • section6 (6)
      • section7 (2)
    • DB (6)
    • Error (6)
      • SQL (3)
      • Java (1)
      • VS (1)
    • Language (38)
      • Java (7)
      • JavaScript (31)
    • Programmers (49)
      • SQL (34)
      • Java (14)
      • JavaScript (1)
    • Tripbnb (0)
      • login (0)
      • framework (0)
    • Spring (3)
    • IT 지식 (1)
    • React (0)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

가보자고

컨텐츠 검색

태그

인프런 #스프링 #김영한 #AOP 프로그래머스 #자바 인프런 프로그래머스 js 프로그래머스 #오라클 javascript SQL 자바스크립트 인프런 #스프링 #김영한 자바 mysql oracle 함수선언 React IF문 프로그래머스 #sql #mysql #oracle 프로그래머스 #JAVA 함수 리액트

최근글

댓글

공지사항

아카이브

프로그래머스 #JAVA(2)

  • 자릿수 더하기

    문제 1) String으로 형 변환 1-1) 1 2 3 4 5 6 7 8 9 10 11 12 13 public class Solution { public int solution(int n) { String str = ""+n; String[] strarr = str.split(""); int temp = 0; for(String s : strarr){ temp += Integer.parseInt(s); } return temp; } } Colored by Color Scripter cs 1-2) valueOf()를 이용한 형 변환 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.*; import static java.lang.String.valueOf; pu..

    2023.01.19
  • replace vs replaceAll

    replace(찾을문자열, 바꿀문자열) 주어진 문자열에서 바꾸고 싶은 특정 문자열이 있을 때 사용하는 함수이다. 1 2 3 4 String str = "ababab"; String result1 = str.replace("ab", "0"); //000 Colored by Color Scripter cs 같은 문자열에 replaceAll을 적용해보겠다. 1 2 3 4 String str = "ababab"; String result2 = str.replaceAll("ab", "0"); //000 Colored by Color Scripter cs replaceAll을 사용했을 때도 replace와 같은 결과가 나왔다. 그렇다면 둘의 차이는 무엇일까? replaceAll(정규식 또는 찾을문자열, 바꿀문자열)..

    2023.01.18
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바