• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

33분의 코딩내용이 실행되지 않습니다!

19.12.20 20:29 작성 조회수 2.56k

0

for(int i=0; i<alphab.length; i++; ch++;) {

alphabets[i] = ch;

}

이 부분부터 이클립스에서 빨간 줄이 그어지면서

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 

Syntax error on token(s), misplaced construct(s)

Type mismatch: cannot convert from char to boolean

Syntax error on token(s), misplaced construct(s)

Type mismatch: cannot convert from char to boolean

라는 에러코드가 떠서 진행을 하지 못하고있습니다.

답변 2

·

답변을 작성해보세요.

2

증감식에 세미콜론붙여서그런것같은데요

0

restpmpmpm님의 프로필

restpmpmpm

2021.02.11

alphab.length; i++; ch++;)  여기 부분에서 alphab 스펠링이 틀렸고 ch++다음에 ;을 붙이면 안됩니다