Now we have crossed 300 in just 15 days, thanks for your support.
❤3
👍5
A java program a class inside another class, how many. .class files will be generated?
Anonymous Quiz
50%
1
34%
2
8%
3
8%
None of these
👍4👏1
If a java program has 4 Java classes then how many .class files will be generated?
Anonymous Quiz
58%
4
18%
8
9%
2
15%
None of these
🔥2❤1
Forwarded from Badkul Technology
Which data type is used to create a variable that should store text?
Anonymous Quiz
75%
String
11%
string
4%
mystr
10%
Text
Subscribe to our channel to learn programming from beginning
Refer basic Java Playlist
https://www.youtube.com/c/FrbJava
Refer basic Java Playlist
https://www.youtube.com/c/FrbJava
https://youtu.be/2wRndYdQ_fI rotate array in java
YouTube
Rotate Array N Times | Learn java programming from beginning.
This video explains How to Rotate an Array in Java N times
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgp
If you face any problem post that in comment section or post that in below telegram channel.…
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgp
If you face any problem post that in comment section or post that in below telegram channel.…
/* Question - 01
To Find Factorial Of A Number
*/
package ABC;
import java.util.*;
public class Hello
{
public static void main(String[] args)
{
Scanner s1 = new Scanner(System.in);
System.out.println("Enter The Value Of n :");
int n = s1.nextInt();
int fact = 1;
for(int i=1;i<=n;i++)
{
fact = fact * i;
}
System.out.println("Factorial of "+ n +" is " + fact);
}
}
To Find Factorial Of A Number
*/
package ABC;
import java.util.*;
public class Hello
{
public static void main(String[] args)
{
Scanner s1 = new Scanner(System.in);
System.out.println("Enter The Value Of n :");
int n = s1.nextInt();
int fact = 1;
for(int i=1;i<=n;i++)
{
fact = fact * i;
}
System.out.println("Factorial of "+ n +" is " + fact);
}
}
❤3
/* Question - 02
Java Program To Reversing A Given Number
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int num,rev=0,rem;
System.out.println("Enter The Number :");
num = s.nextInt();
System.out.println("Original Number: " + num);
while(num != 0) {
rem = num%10;
rev = rev*10+rem;
num = num/10;
}
System.out.println("Reversed Number: " + rev);
}
}
Java Program To Reversing A Given Number
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int num,rev=0,rem;
System.out.println("Enter The Number :");
num = s.nextInt();
System.out.println("Original Number: " + num);
while(num != 0) {
rem = num%10;
rev = rev*10+rem;
num = num/10;
}
System.out.println("Reversed Number: " + rev);
}
}
👍4
/* Question - 03
Java Program To Check Whether Given Number Is Palindrome Or Not
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
int Num,Rem,Sum=0,Var;
Scanner s = new Scanner(System.in);
System.out.print("Enter The Number :");
Num = s.nextInt();
Var = Num;
while(Num!=0) {
Rem = Num%10;
Sum = Sum*10+Rem;
Num = Num/10;
}
if(Sum==Var)
{
System.out.println(Var+" Is A Palindrom Number");
}
else
{
System.out.println(Var+" Is Not A Palindrom Number");
}
}
}
Java Program To Check Whether Given Number Is Palindrome Or Not
*/
package ABC;
import java.util.*;
public class Main {
public static void main(String[] args) {
int Num,Rem,Sum=0,Var;
Scanner s = new Scanner(System.in);
System.out.print("Enter The Number :");
Num = s.nextInt();
Var = Num;
while(Num!=0) {
Rem = Num%10;
Sum = Sum*10+Rem;
Num = Num/10;
}
if(Sum==Var)
{
System.out.println(Var+" Is A Palindrom Number");
}
else
{
System.out.println(Var+" Is Not A Palindrom Number");
}
}
}
👍5
Anonymous Quiz
43%
.java
42%
.class
9%
.exe
6%
.byc
Forwarded from TechShiksha by Badkul Technology
Can you write a program to rotate array by one place? Example below
Input 1 2 3 4 5 6 7
Output 2 3 4 5 6 7 1
Input 1 2 3 4 5 6 7
Output 2 3 4 5 6 7 1
Anonymous Poll
56%
Yes
22%
No
23%
Share solution video
👍1😁1
Forwarded from TechShiksha by Badkul Technology
YouTube
Rotate Array N Times | Learn java programming from beginning.
This video explains How to Rotate an Array in Java N times
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgp
If you face any problem post that in comment section or post that in below telegram channel.…
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgp
If you face any problem post that in comment section or post that in below telegram channel.…