Jose Mejia Profile picture
Software engineer intern @ Hometrack helping to build a Mobile app with React Native.🇺🇲🇳🇮 | Java | JavaScript | React | React Native | Next| node
Sep 24, 2021 4 tweets 2 min read
✅Java Loops

Loops executed the code as long as the condition is true. They are very useful to repeat a block of code.

There are a couple of loops. I will focus on the two most use.
👇

👉while
👉for

Let's see them in more detail
👇
#Java #100DaysOfCode while 👉 use a while loop when you don't know how many times you want to execute the code.

for 👉 use the for loop when you know how many times you want to execute the block of code.

Example👇while and for loop
#Java #100DaysOfCode
Sep 23, 2021 4 tweets 3 min read
✅Java If statement

if statements are combined with logical conditions. Here is a thread about them so you can have an idea of what they are.

if statements allow us to make different actions and make different decision base on a logical test.

#Java #100DaysOfCode
cont... ✅Now let's take a look at the different conditional statements.

if👉 executed if condition return true
else 👉 executed if the if condition return false
else if 👉new condition if first condition return false.

example 👇
#Java #100DaysOfCode
Sep 22, 2021 6 tweets 4 min read
✅Java

✅String manipulation

Strings are a collection of characters. The keyword String is an object and comes with a lot of useful methods to manipulate a text.

Let's see some of the basic
👇
#Java #DEVCommunity #100daysofcoding ✅The basic method to manipulate a String

length() - return the number of characters that the text contain

toUpperCase() - it will change the text to capital letters

toLowerCase() - it will change the text to lower case

concat() - it adds two strings together.

Ex.👇
#Java