Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* This method displays the given text on the screen.
*/
private void displayMessage(String message) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(message);
}
@Daz46

This comment has been minimized.

Copy link

Daz46 commented Apr 13, 2016

Thank's

@OneSir

This comment has been minimized.

Copy link

OneSir commented Apr 16, 2016

请问PS2的导师笔记在哪里可以看?

@FullMoonBro

This comment has been minimized.

Copy link

FullMoonBro commented May 19, 2016

wow thanks for help us anonymous

@otkrivashkin

This comment has been minimized.

Copy link

otkrivashkin commented May 31, 2016

Дякую)

@abdullahhoosen

This comment has been minimized.

Copy link

abdullahhoosen commented Jun 25, 2016

Thanks for the free coffee Kath!

@clayzeballos

This comment has been minimized.

Copy link

clayzeballos commented Jul 9, 2016

Anonymous is the best guy... or girl! :/

@nixoncode

This comment has been minimized.

Copy link

nixoncode commented Jul 9, 2016

On It!

@tian-chaiyaporn

This comment has been minimized.

Copy link

tian-chaiyaporn commented Jul 30, 2016

Cheers Anonymous

@Andr11

This comment has been minimized.

Copy link

Andr11 commented Sep 29, 2016

Спасибо!

@nevagiveup

This comment has been minimized.

Copy link

nevagiveup commented Oct 24, 2016

Thank You!

@SiAce

This comment has been minimized.

Copy link

SiAce commented Oct 30, 2016

amazing course!

@sanjaysan7

This comment has been minimized.

Copy link

sanjaysan7 commented Nov 8, 2016

Thank you .

@ShengSunEVI

This comment has been minimized.

Copy link

ShengSunEVI commented Nov 17, 2016

Oh No!!!!!!!, Youtube has deactivated Catherine's account!!!!! Tutorials no longer available!!!!!!!!!!

@joaquinsnake

This comment has been minimized.

Copy link

joaquinsnake commented Dec 4, 2016

Thank you guys for everything!

@mohamedx1977

This comment has been minimized.

Copy link

mohamedx1977 commented Dec 18, 2016

شكراً جزيلاً
Thanks Lot

@fnowshad

This comment has been minimized.

Copy link

fnowshad commented Dec 19, 2016

Happy Christmas!!!
Wow! we deserve this free on this special day coming soon. Free, Free, Free.
Thanks for nice and effective delivering.

@borisvillanueva

This comment has been minimized.

Copy link

borisvillanueva commented Dec 27, 2016

Excellent Course and Delivery I am learning a lot!! Thanks and Happy Holidays!!

@MKalita007

This comment has been minimized.

Copy link

MKalita007 commented Jan 9, 2017

Thanks a lot

@fragargon

This comment has been minimized.

Copy link

fragargon commented Jan 21, 2017

thanks you

@PelmusMarian

This comment has been minimized.

Copy link

PelmusMarian commented Jan 28, 2017

thanks ! :D

@Arissp

This comment has been minimized.

Copy link

Arissp commented Feb 1, 2017

Nice Code!

@ghost

This comment has been minimized.

Copy link

ghost commented Feb 6, 2017

Cool 8-)

@ghost

This comment has been minimized.

Copy link

ghost commented Feb 26, 2017

Thank you 👍

@yiantzi

This comment has been minimized.

Copy link

yiantzi commented Mar 1, 2017

👍

@madzik151

This comment has been minimized.

Copy link

madzik151 commented Mar 2, 2017

No description provided.

@PedroP1res

This comment has been minimized.

Copy link

PedroP1res commented Mar 2, 2017

Thank you =)

@jcunanan05

This comment has been minimized.

Copy link

jcunanan05 commented Mar 3, 2017

yay!

@jffarias

This comment has been minimized.

Copy link

jffarias commented Mar 7, 2017

thanks so much! 👍

@7ee1aa

This comment has been minimized.

Copy link

7ee1aa commented Mar 12, 2017

Another copy-paste .D Wooohooo!

@Tatiana01

This comment has been minimized.

Copy link

Tatiana01 commented Mar 22, 2017

Thanks!!!

@rebekaszucs

This comment has been minimized.

Copy link

rebekaszucs commented Mar 29, 2017

Great course, thank you!:) I can't wait to learn more

@Vercsi

This comment has been minimized.

Copy link

Vercsi commented Apr 1, 2017

Thank You! U are awesome! ;)

@nnannos

This comment has been minimized.

Copy link

nnannos commented Apr 8, 2017

Thank you for the code.

@neliamx4

This comment has been minimized.

Copy link

neliamx4 commented Apr 9, 2017

Thanks!;)

@Florin415

This comment has been minimized.

Copy link

Florin415 commented Apr 10, 2017

Thanks 👍

@ghost

This comment has been minimized.

Copy link

ghost commented Apr 11, 2017

Thanks o/

@ramywageh

This comment has been minimized.

Copy link

ramywageh commented Apr 22, 2017

that is good

@K1ngandrius

This comment has been minimized.

Copy link

K1ngandrius commented Apr 23, 2017

Why is showing me an error here while i try to run the app!! Can anyone help me please.
error java studio

@ShanakaWickramaarachchi

This comment has been minimized.

Copy link

ShanakaWickramaarachchi commented May 3, 2017

@K1ngandrius I can see one thing ,that your displayPrice method is not initiated properly

@asongsoekamti

This comment has been minimized.

Copy link

asongsoekamti commented May 4, 2017

Thanks for your file

@ramadani

This comment has been minimized.

Copy link

ramadani commented May 17, 2017

Great

@geekbae

This comment has been minimized.

Copy link

geekbae commented Jun 12, 2017

jeez :) please us this code for ordering -2 coffees, would be problem at your local Tim Hortons.

quantity = quantity - 1;
quantity = quantity < 0? 0 : quantity;
display(quantity)

I love this Free coffees, wish we have more this method of payment videos = Thank You! ;

@koshkinmax

This comment has been minimized.

Copy link

koshkinmax commented Nov 23, 2017

tnx

@Yusufiadi

This comment has been minimized.

Copy link

Yusufiadi commented Nov 24, 2017

Run it

@Ramymgamal

This comment has been minimized.

Copy link

Ramymgamal commented Dec 6, 2017

thanks

@MarcinSonic

This comment has been minimized.

Copy link

MarcinSonic commented Dec 8, 2017

got it!

@w3dmaktob

This comment has been minimized.

Copy link

w3dmaktob commented Dec 9, 2017

Thanks

@ghost

This comment has been minimized.

Copy link

ghost commented Dec 12, 2017

That is perfect !!!

@nosalska

This comment has been minimized.

Copy link

nosalska commented Dec 17, 2017

Thank you :-)

@AhmMahgoub

This comment has been minimized.

Copy link

AhmMahgoub commented Dec 18, 2017

great !

@arp-wtm

This comment has been minimized.

Copy link

arp-wtm commented Dec 20, 2017

Happy to be here! I like this adventure!

@GabrielePorro

This comment has been minimized.

Copy link

GabrielePorro commented Dec 20, 2017

yeah!

@Sherif-Adham

This comment has been minimized.

Copy link

Sherif-Adham commented Dec 24, 2017

That worked very good

@Holja

This comment has been minimized.

Copy link

Holja commented Jan 2, 2018

Thanks

@NisanTarhan

This comment has been minimized.

Copy link

NisanTarhan commented Jan 13, 2018

Thanks a lot

@drszabodavid

This comment has been minimized.

Copy link

drszabodavid commented Jan 14, 2018

Thanks ;)

@PereViki

This comment has been minimized.

Copy link

PereViki commented Jan 15, 2018

Let's see how it works :-)

@Janek666

This comment has been minimized.

Copy link

Janek666 commented Jan 20, 2018

Thanks!

@AhmedOmarDarwish

This comment has been minimized.

Copy link

AhmedOmarDarwish commented Jan 25, 2018

Thank you

@MAXDANK

This comment has been minimized.

Copy link

MAXDANK commented Jan 25, 2018

When I hit the order button, My price text view changes to free but the text in place of $10 remains same.
PLEASE HELP

@osamasarhan

This comment has been minimized.

Copy link

osamasarhan commented Jan 25, 2018

More pls

@Maxwe1

This comment has been minimized.

Copy link

Maxwe1 commented Jan 29, 2018

Thank you.

@Leonard02

This comment has been minimized.

Copy link

Leonard02 commented Feb 1, 2018

thanks

@Nogaeman

This comment has been minimized.

Copy link

Nogaeman commented Feb 2, 2018

Thanks

@ScaTar

This comment has been minimized.

Copy link

ScaTar commented Feb 4, 2018

Díky kámo.. Thank you.

@eyp1453

This comment has been minimized.

Copy link

eyp1453 commented Feb 5, 2018

Thanks

@SSafia

This comment has been minimized.

Copy link

SSafia commented Feb 5, 2018

Thank you! 💯

@nepara90

This comment has been minimized.

Copy link

nepara90 commented Feb 6, 2018

thanks!

@yassalah

This comment has been minimized.

Copy link

yassalah commented Feb 7, 2018

Thanks

@samiaissaoui

This comment has been minimized.

Copy link

samiaissaoui commented Feb 9, 2018

*great

@HaythamSA

This comment has been minimized.

Copy link

HaythamSA commented Feb 9, 2018

thank you

@abrarabd

This comment has been minimized.

Copy link

abrarabd commented Feb 11, 2018

thanks

@abdahma01

This comment has been minimized.

Copy link

abdahma01 commented Feb 12, 2018

Done

@badrddinb

This comment has been minimized.

Copy link

badrddinb commented Feb 19, 2018

Thanks 👍
image

@Hamzah2018

This comment has been minimized.

Copy link

Hamzah2018 commented Feb 22, 2018

thanks

@AbdooRaf3

This comment has been minimized.

Copy link

AbdooRaf3 commented Feb 22, 2018

شكرا
thanks

@first-hero

This comment has been minimized.

Copy link

first-hero commented Feb 23, 2018

thank you

@nazarshami

This comment has been minimized.

Copy link

nazarshami commented Feb 24, 2018

Thanks!!

@fawaz1600

This comment has been minimized.

Copy link

fawaz1600 commented Feb 26, 2018

Thank you

@jerrarum

This comment has been minimized.

Copy link

jerrarum commented Mar 3, 2018

thank you

@AbdelrhmanMHsn

This comment has been minimized.

Copy link

AbdelrhmanMHsn commented Mar 7, 2018

thanks

@mayzeada

This comment has been minimized.

Copy link

mayzeada commented Mar 13, 2018

thank you

@MostafaMahmoudAhmed

This comment has been minimized.

Copy link

MostafaMahmoudAhmed commented Mar 13, 2018

Thanks A Lot :)

@hatemphp

This comment has been minimized.

Copy link

hatemphp commented Mar 13, 2018

thanks

@rsaati77

This comment has been minimized.

Copy link

rsaati77 commented Mar 16, 2018

Thanks!

@Ncairi

This comment has been minimized.

Copy link

Ncairi commented Mar 23, 2018

screenshot_2018-03-23-14-43-47
it is ok 👍

@mounika82

This comment has been minimized.

Copy link

mounika82 commented Mar 23, 2018

superb....!!!

@abdobasha2004

This comment has been minimized.

Copy link

abdobasha2004 commented Mar 30, 2018

Very nice work in the course

@sajad-lone

This comment has been minimized.

Copy link

sajad-lone commented Mar 31, 2018

Thanks...Kathrine

@djames2018

This comment has been minimized.

Copy link

djames2018 commented Apr 11, 2018

Got it!

@chinnuj

This comment has been minimized.

Copy link

chinnuj commented Apr 27, 2018

thanks

@hudsonpereira

This comment has been minimized.

Copy link

hudsonpereira commented May 6, 2018

Here we go

@shoooka

This comment has been minimized.

Copy link

shoooka commented May 10, 2018

Thank's

@SaeedAlbaradie

This comment has been minimized.

Copy link

SaeedAlbaradie commented May 11, 2018

I hope to me such an order like that……:)

@Alihani0almamary

This comment has been minimized.

Copy link

Alihani0almamary commented May 25, 2018

I need hellp for this error
20

@mostafakaplan

This comment has been minimized.

Copy link

mostafakaplan commented May 26, 2018

@Alihani0almamary
مرحبا اخي
بدلا عن وضع الشريحة السفلية
_
احذفها و
اعمل مسافة بين كلمة
String
و
priceMessage
وهذه الصورة للتوضيح
fix error help 1

@shyennekey

This comment has been minimized.

Copy link

shyennekey commented May 30, 2018

Thanks :)

@ahsam7145

This comment has been minimized.

Copy link

ahsam7145 commented May 31, 2018

Thank you

@Haapiiiii

This comment has been minimized.

Copy link

Haapiiiii commented Jun 6, 2018

perfect

@jhonathan94

This comment has been minimized.

Copy link

jhonathan94 commented Jun 10, 2018

Thank you

@ghost

This comment has been minimized.

Copy link

ghost commented Jun 11, 2018

谢谢

@muhamadaliibrahim

This comment has been minimized.

Copy link

muhamadaliibrahim commented Jun 20, 2018

دەستان خۆشبێت
Well Done 👍

@faiza3

This comment has been minimized.

Copy link

faiza3 commented Jun 23, 2018

thanks

@harunaadoga

This comment has been minimized.

Copy link

harunaadoga commented Jul 11, 2018

So far so good

@harunaadoga

This comment has been minimized.

Copy link

harunaadoga commented Jul 11, 2018

screen shot 2018-07-11 at 09 57 46

@ShubhangPK

This comment has been minimized.

Copy link

ShubhangPK commented Jul 14, 2018

Ola Amegos!
Gracias!

@johninit

This comment has been minimized.

Copy link

johninit commented Jul 18, 2018

gr8t

@ridaservicerida

This comment has been minimized.

Copy link

ridaservicerida commented Aug 11, 2018

Thank you +1

@sliman2017

This comment has been minimized.

Copy link

sliman2017 commented Aug 13, 2018

thank you.

@samyabdellatif

This comment has been minimized.

Copy link

samyabdellatif commented Aug 15, 2018

thank you

@jerrychong25

This comment has been minimized.

Copy link

jerrychong25 commented Aug 17, 2018

Thanks

@emanhamad

This comment has been minimized.

Copy link

emanhamad commented Sep 1, 2018

display "Free" when clicked the button

@melguebli

This comment has been minimized.

Copy link

melguebli commented Sep 7, 2018

thanks

@Yogesh-Bhati

This comment has been minimized.

Copy link

Yogesh-Bhati commented Oct 2, 2018

Thanks.

@lomiara

This comment has been minimized.

Copy link

lomiara commented Oct 15, 2018

Thanks

@ASMAALKHALDI

This comment has been minimized.

Copy link

ASMAALKHALDI commented Dec 29, 2018

thank you

@Saitama-Sensie

This comment has been minimized.

Copy link

Saitama-Sensie commented Feb 11, 2019

even thought the correct variable name is submitted it still says its wrong

@Altaeb

This comment has been minimized.

Copy link

Altaeb commented Mar 10, 2019

Thank's

@djalilo24

This comment has been minimized.

Copy link

djalilo24 commented Mar 20, 2019

thank's

@LyThanhQui

This comment has been minimized.

Copy link

LyThanhQui commented Apr 18, 2019

thank you very much!

@elnehrawy

This comment has been minimized.

Copy link

elnehrawy commented Jul 2, 2019

cool

@DIsMInd

This comment has been minimized.

Copy link

DIsMInd commented Jul 7, 2019

nice

@hamada3a3

This comment has been minimized.

Copy link

hamada3a3 commented Aug 19, 2019

Thank you so much

@habibna

This comment has been minimized.

Copy link

habibna commented Oct 5, 2019

Thank you

@roger-vanwyk

This comment has been minimized.

Copy link

roger-vanwyk commented Nov 9, 2019

awesome!

@LaszloLajosT

This comment has been minimized.

Copy link

LaszloLajosT commented Nov 9, 2019

Free coffee for everyone! :) I love it

@tashafmukhtar00

This comment has been minimized.

Copy link

tashafmukhtar00 commented Dec 18, 2019

awesome!

@deepak9962

This comment has been minimized.

Copy link

deepak9962 commented Dec 23, 2019

So far, I've created this;
View after launching the app
Screenshot_20191223-162629

After clicking the + button
Screenshot_20191223-162709

After clicking the Order Button
Screenshot_20191223-162643

and so finally,
After clicking the reset button
Screenshot_20191223-162629

Codes are available at my github:
https://github.com/deepak9962/just-java

shortcut:
XML file:
https://github.com/deepak9962/just-java/blob/master/app/src/main/res/layout/activity_main.xml

mainActivity.java file:
https://github.com/deepak9962/just-java/blob/master/app/src/main/java/com/justjava/MainActivity.java

@rahulvivaramneni

This comment has been minimized.

Copy link

rahulvivaramneni commented Mar 16, 2020

The Android Nanodegree course was awesome..! Thank You

@minamagdy268

This comment has been minimized.

Copy link

minamagdy268 commented May 1, 2020

how can i add 5 input values and" average" Method, calculate the average value of the 5 inputs values inside the average method and return it

@keithchad

This comment has been minimized.

Copy link

keithchad commented May 4, 2020

going good

@Eng-Abdulrasheed

This comment has been minimized.

Copy link

Eng-Abdulrasheed commented Jul 4, 2020

Thanks

@SALWA33

This comment has been minimized.

Copy link

SALWA33 commented Jul 11, 2020

public class
int input1 = 10;
int input2= 20;
int input3 = 30;
int input4 = 40;
int input5 = 50;
public float average(){
writte java code to calculate the average for all input variable
return 0;

@tarek9999

This comment has been minimized.

Copy link

tarek9999 commented Jul 21, 2020

Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.