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

Trending Topics

Online now

Members online
1,153
Guests online
2,955
Total visitors
4,108

Forum statistics

Threads
2,331,821
Posts
29,260,568
Members
1,147,835
Latest member
shsjsjkssksn
Back
Top