Java Programming Tutorial - 24 - do while Loops

Java Programming Tutorial - 24 - do while Loops

thenewboston

16 лет назад

669,314 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DrKojiin
@DrKojiin - 27.06.2016 18:48

Thanks, your are awesome very clear and concise.

Ответить
@itrusty427
@itrusty427 - 12.09.2016 08:06

Practicing!

Ответить
@ratedrr_chelsea2074
@ratedrr_chelsea2074 - 16.11.2016 19:11

what are the USEFUL applications of do while compared to other loops? if anyone can help id appreciate it thanks :)

Ответить
@Genjiro6000
@Genjiro6000 - 26.11.2016 05:31

He teaches better than my tutor...

Ответить
@noudie7305
@noudie7305 - 09.12.2016 19:39

Thank you so much this is really helpful.

Ответить
@chintankumarpatel6097
@chintankumarpatel6097 - 19.02.2017 12:30

why dosent it print 16 because there was counter++
why does not increment the number

Ответить
@yashraj3807
@yashraj3807 - 01.03.2017 18:22

bracket should after args

Ответить
@Bluejays7100
@Bluejays7100 - 15.03.2017 20:00

By the way, what program is he doing with this?

Ответить
@fatimahali698
@fatimahali698 - 29.04.2017 22:17

OMG THANK YOU SO MUCH!!!!! I ACTUALLY UNDERSTAND NOW

Ответить
@anilmawji
@anilmawji - 12.05.2017 02:57

yeet

Ответить
@noctua7771
@noctua7771 - 16.06.2017 07:30

You explained this in 3 minutes thoroughly while it would take my teacher an entire week.

Ответить
@FirstNameLastName-tc2ok
@FirstNameLastName-tc2ok - 29.06.2017 01:40

Keep going guys! Don't stop!

Ответить
@pritikalahiri6712
@pritikalahiri6712 - 28.08.2017 19:11

does this only work on counters?

Ответить
@hebrux
@hebrux - 22.09.2017 22:53

My professor teaches us java from power points. FUCKING POWERPOINTS!

Ответить
@ahmedsheikh4360
@ahmedsheikh4360 - 15.12.2017 00:08

You are best !!!!

Ответить
@reubenwilliammpembe667
@reubenwilliammpembe667 - 18.12.2017 06:08

System.out.println("THANK YOU");

Ответить
@ldveloper8021
@ldveloper8021 - 30.12.2017 15:16

DO WHILE OF COMPOUND INTEREST
/**************************************************/
int i =1;
double amount,
rate= 0.01;

Scanner s = new Scanner (System.in);
/*****************************/
System.out.print("input how many day: ");
int day = s.nextInt();
System.out.print("input the principal: ");
double p = s.nextDouble();

/**************/
do {
amount = p*Math.pow(1+rate, i);
System.out.printf("%d\t%4.2f\n",i,amount);
i++;
}while (i <=day);
}

}

Ответить
@akeelhussain4486
@akeelhussain4486 - 06.01.2018 05:03

Watching This A Week Before my first java exam wish my lick guys!😂

Ответить
@munchocruncho
@munchocruncho - 13.02.2018 02:45

Psycho alpha disco beta bio aqua do loop

Ответить
@fromup9594
@fromup9594 - 28.02.2018 06:25

in evry video u can find one person commenting the program in better way or modified way

Ответить
@youssefkhaled9228
@youssefkhaled9228 - 01.04.2018 18:52

What program are u using to run code?

Ответить
@otaku5869
@otaku5869 - 12.04.2018 08:44

Finally understood the do while loop, thx dude!

Ответить
@Omenslol
@Omenslol - 13.04.2018 00:21

Thanks Bucky! I love how simplified you've made these tutorials and with clear explanations! :)

Ответить
@ButterySkater
@ButterySkater - 15.05.2018 06:21

why does my teacher teach us in the whiteboard? i will never know.

Ответить
@خللدالعمري
@خللدالعمري - 28.07.2018 01:31

Esay and simple curse

Ответить
@taxoon
@taxoon - 13.08.2018 16:48

This is gorgeous

Ответить
@rasibnadeem8519
@rasibnadeem8519 - 23.09.2018 18:31

4 mb video download :'(

Ответить
@reubenconway4444
@reubenconway4444 - 24.09.2018 23:03

I love you so much. My class textbook was not helping at all. Its only the second week in class and the instructor told us to do for, while, and do while loops as our second assignment, the first 6 chapters of our textbook has zero mention of loops. I was getting scared thinking "is it just me?!" but thanks to your videos i was able to finish the assignment on time. sigh of relief

Ответить
@SparkleSprinkly
@SparkleSprinkly - 27.10.2018 19:48

I love you

Ответить
@dclxvi7960
@dclxvi7960 - 03.12.2018 14:09

computers are so cute

Ответить
@ilovereadingwuxiaxianxiaat8994
@ilovereadingwuxiaxianxiaat8994 - 05.12.2018 09:22

This is why I take online courses lol, teachers are useless (most of them).

Ответить
@andi7442
@andi7442 - 22.12.2018 03:16

:)

Ответить
@olglez9230
@olglez9230 - 27.12.2018 22:55

I love your tutorials! They're short, simple, and straight to the point. They're really helping my exam revision!

Ответить
@kadencassidy3134
@kadencassidy3134 - 22.02.2019 03:12

This looks a awfully a lot alike, a lot, alike. Wait, an awfully lot alike, yeah that's right.

Ответить
@samuels997
@samuels997 - 02.06.2019 13:31

Java simple aanu....powerful aanu

Ответить
@UNBIASEDCOMMENT
@UNBIASEDCOMMENT - 22.10.2019 17:29

You are my teacher now. subscribing.

Ответить
@ollieappletree3587
@ollieappletree3587 - 08.11.2019 08:04

EPICCC

Ответить
@darshilvshah
@darshilvshah - 10.04.2020 16:36

This course is absolutely AMMMMAAAZEEEE

Ответить
@TimnasPildun2030
@TimnasPildun2030 - 03.09.2020 17:24

public class latihan1{
public static void main(String[] args){

int counter = 0;
while(counter < 10){
counter++;
System.out.println(counter);

}

}

}

is the same right??

Ответить
@jinhuang7258
@jinhuang7258 - 23.09.2020 01:55

Very useful!

Ответить
@prajapatarun5711
@prajapatarun5711 - 01.10.2020 11:17

best at 1.75x

Ответить
@Scarab_ii
@Scarab_ii - 28.01.2021 09:02

why not just execute the statement once and then run the while loop, without need for the do

Ответить
@kennethazor
@kennethazor - 20.02.2021 13:49

the funkiest loop in Java

Ответить
@shreyaschaudhary8901
@shreyaschaudhary8901 - 02.05.2021 21:45

best teacher ever.
thanks Bucky!!

Ответить
@alicias.h.4480
@alicias.h.4480 - 02.01.2022 21:57

You're amazing- Thank you 👍

Ответить
@its_shmul
@its_shmul - 30.01.2024 01:38

public class CompoundInterest {

public static void main (String[] args) {
double amount = 10000;
double rate = 0.01;

for (int year = 1; year<=10; year++) {
amount = amount + (amount * rate);
System.out.println ("The amount in year " + year + " is " + amount);
//I used a different method than the bucky tutorial!!!

//Let's just see how power functions work though
}
double gedi = 100;
//Let's make this to the power of 2
gedi = Math.pow(gedi, 2);
System.out.println(gedi);
}
}

Ответить