🔒 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
  • 335
    Views
  • 3
    Participants
Last reply from:
XieSmile

Trending Topics

Online now

Members online
409
Guests online
2,918
Total visitors
3,327

Forum statistics

Threads
2,307,003
Posts
29,175,668
Members
1,194,154
Latest member
962dem
Back
Top