Blue___
코딩배우는 학생🌎
Blue___
전체 방문자
오늘
어제
  • 코딩배우는 학생🧀 (242)
    • Algorithms (145)
      • BOJ[Java] (107)
      • Programmers[Java] (32)
      • Coding_Contest (3)
    • Web (22)
      • .NET Core C# (2)
      • Java (1)
      • Oracle SQL (7)
      • Web-ProJect (3)
      • Error처리 (1)
      • Web지식 (4)
      • Javascript (1)
      • Vue (3)
    • Git (4)
    • Java_beginner(Repl.it) (55)
      • Auto-Graded-Course(AP CS A) (54)
    • 프로젝트 직딩일기 (3)
    • Hanyang_Assignment (0)
    • 이모저모 (4)
      • 잡담 (1)
      • 2021 오픈소스 컨트리뷰터 아카데미 (1)
      • DDD - 6기! (1)
    • 북리뷰 (1)
      • 리팩토링 2판 (1)
      • 클린코드 (0)

블로그 메뉴

  • 🐰GITHUB
  • ☘️포트폴리오
  • 🌸MBC개발_투표 2022
  • 🍭MBC_APP

공지사항

인기 글

태그

  • 알고리즘
  • 프로그래머스
  • 자바
  • 코딩배우는 학생
  • java basic
  • Bakjoon
  • AP CS A
  • coding
  • 코딩배우는학생
  • repl.it
  • algorithm
  • REPL
  • auto-graded course
  • 레플릿
  • Java
  • 프로그래밍
  • Java tutorial
  • 백준
  • programmers
  • 코딩

최근 댓글

최근 글

티스토리

hELLO
Blue___

코딩배우는 학생🌎

007 - String Methods - charAt
Java_beginner(Repl.it)/Auto-Graded-Course(AP CS A)

007 - String Methods - charAt

2019. 11. 26. 19:43

For you to do:

 

ALL print statements in this exercise should be on one line, no newlines.

 

  • Print out the character in the 5th index of the String str

  • Print out the character in the 8th index of the String str

  • Print out the character in the 1st index of the String str

  • Print out the index in the i-th index of the String str (i is a variable already declared for you)


class Main {
	  public static void main(String[] args) {
	    String str ="boopity bop";
	    int i = 10;
	    System.out.print(str.charAt(5));
	    System.out.print(str.charAt(8));
	    System.out.print(str.charAt(1));
	    System.out.print(str.charAt(i));
	  }
	}
  

 

반응형

'Java_beginner(Repl.it) > Auto-Graded-Course(AP CS A)' 카테고리의 다른 글

009 - String Methods - substring  (0) 2019.11.26
008 - String Methods - indexOf  (0) 2019.11.26
006 - String Methods - Length  (0) 2019.11.26
005 - Creating Variables and Printing 5  (0) 2019.11.26
004 - Creating Variables and Printing 4  (0) 2019.11.26
    'Java_beginner(Repl.it)/Auto-Graded-Course(AP CS A)' 카테고리의 다른 글
    • 009 - String Methods - substring
    • 008 - String Methods - indexOf
    • 006 - String Methods - Length
    • 005 - Creating Variables and Printing 5
    Blue___
    Blue___
    완전 연소한 불은 재를 남기지않는다 : 코딩배우는학생 🌎

    티스토리툴바