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

Trending Topics

Online now

Members online
1,188
Guests online
1,975
Total visitors
3,163

Forum statistics

Threads
2,293,823
Posts
29,086,879
Members
1,207,972
Latest member
elijahidris
Back
Top