🔒 Closed HELP JAVA

Status
Not open for further replies.

XieSmile

Established
Meron po akong hindi na gets sa Java Coding mga master pano po proper coding nito na mag input lang ako ng numbers. Di ko naintindihan nasa baba po yung codes and error sa pag compile thanks po sa maka tulong mga master.

IMG20200929130335.webp

Screenshot_2020-09-29-13-04-48-67_7885c407ff790600b0e797e3f33df4de.webp

Screenshot_2020-09-29-13-07-35-30_7885c407ff790600b0e797e3f33df4de.webp

Screenshot_2020-09-29-13-07-46-94_7885c407ff790600b0e797e3f33df4de.webp

Screenshot_2020-09-29-13-08-00-91_7885c407ff790600b0e797e3f33df4de.webp
 
Bolean are True or False,
While condition ONLY accepts Bolean as an argument,
you are not comparing the var B to anything, thus While Loop see it as an integer not a Bolean.
e.g While(True){
#run this code
}
//yours is:
While(decrementThisnumber){
#run this code.
}
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 314
    Views
  • 3
    Participants
Last reply from:
XieSmile

Online now

Members online
967
Guests online
2,450
Total visitors
3,417

Forum statistics

Threads
2,276,141
Posts
28,967,846
Members
1,231,131
Latest member
Yrrojan
Back
Top