top of page

Welcome back to school!

Writer: Amulya Malapaka
Amulya Malapaka
Aug 26, 2018
1 min read

This week, let's get some INSPIRATION GOING! So, as we continue with arrays, let's try something fun. Let's add some randomness into it. This week, create an array filled with inspirational strings. Then, use a function and a random number generator function to return an inspirational quote randomly. Here's some review on random number generators: https://stackoverflow.com/questions/5887709/getting-random-numbers-in-java


To go with it, here's a recipe for some tea to keep you from getting sick!

https://www.saveur.com/turmeric-coconut-herbal-tea-recipe


Amulya



 
 
 

Recent Posts

See All
Well it's been a while, huh.

Welcome back girls and boys, we're in for a fun ride :) As the end of the school year approaches us I'm sure we're excited for a summer...

 
 
 
THANKSGIVING!

IT'S THANKSGIVING!!! Want to know what I'm thankful for? I'm thankful for the beautiful weather we've been having.(Yes that was...

 
 
 

1 Comment


Yiyuan Sun
Yiyuan Sun
Oct 22, 2018

//java:


public String badButInspirationalPhysics(){

String[] quotes = {"Black holes are what you find on black socks", "Do work to get energy", "The conservative rules of physics are being Republican"};


int random = (int)(Math.random()*3);


return quotes[random];

}


Like
bottom of page