Java - Important Code Note 1
———————————————
IP Address
import java.net.InetAddress;
InetAddress IP = InetAddress.getLocalHost();
System. out. println("IP of my system is := "+IP. getHostAddress());
Maths Equations
Math.pow(b,s)
Math.sqrt()
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽
———————————————
IP Address
import java.net.InetAddress;
InetAddress IP = InetAddress.getLocalHost();
System. out. println("IP of my system is := "+IP. getHostAddress());
Maths Equations
Math.pow(b,s)
Math.sqrt()
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽
Java - Important Code Note 2
————————————————
Reverse Number
public class ReverseNumber {
public static void main(String[] args) {
int num = 1234, reversed = 0;
while(num != 0) {
int digit = num % 10;
reversed = reversed * 10 + digit;
num /= 10;
}
System.out.println("Reversed Number: " + reversed);
}
}
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽
————————————————
Reverse Number
public class ReverseNumber {
public static void main(String[] args) {
int num = 1234, reversed = 0;
while(num != 0) {
int digit = num % 10;
reversed = reversed * 10 + digit;
num /= 10;
}
System.out.println("Reversed Number: " + reversed);
}
}
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽
Java - Question & Answers
————————————————
Below we posted screen shot of the question to the solution code we are going to be posted.
Tip: u gave us 🙏🏽 Thanks!
Keep calm and wait for the upcoming java exercises.
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽
————————————————
Below we posted screen shot of the question to the solution code we are going to be posted.
Tip: u gave us 🙏🏽 Thanks!
Keep calm and wait for the upcoming java exercises.
————————————————
AI Programming @freecodecs
Have a Lit🔥 Practice Folks 🙌🏽