Java Codes Basic to Advance
2.03K subscribers
4 photos
2 videos
1 file
48 links
Download Telegram
Government ne google ki dadagiri ko khatm karne ke liye apna khud ka app store banaya hai 🔥😍

Playstore pe jo apps hain unhe 30% Playstore ko apni kamayi ka hissa dena padta hai

https://apps.mgov.gov.in/details?appid=270

Aap sabhi ye government playstore ko download kare Aur logo ko bhi share Kare

Government ne to apna Kam Kar diya ab hamari Bari.
👍1
1. भारतीय संविधान को लिखने का कार्य किसने किया था?
- भारतीय संविधान को प्रेम बिहारी नारायण रायज़ादा ने अंग्रेजी में और वसंत कृष्ण वैद्य ने हिंदी में हाथ से लिखा था।

2. संविधान सभा का अध्यक्ष कौन था?
- .....
More details join: https://t.me/SidsAnalysis/38

Join for daily intrusting knowledge
आप सभी को स्वतंत्रता दिवस की हार्दिक बधाई 🇮🇳🇮🇳
In these days rust is getting much popular

1) Because of it's speed of execution.
2) It's full controll on system memory
3) it's ownership model
4) And integration to other languages

So why wait let's join our rust channel
https://t.me/Rust_Codes_Pro
👍51
.
Jinke pass bhi Groups hain 10 members se 250 members tak ke vo mujhe de sakte hain

(Only telegram groups no newly created)
And don't comment here directly message me

Minimum Price 50 rupye maximum price can be 100 vary based on group

And in special group case it will be more

@Panditsiddharth
Or Call 6389680622
👍2
We have started new Channel.
Is channels me aapko 8000 se lekar 1lack+ salary ke jobs achive karne ke liye kya skills required hoti hain unke bare me batayenge.

Kya kya jaroori hota hai cv, experience, education and knowledge se lekar bahut kuchh

Har ek field jaise accounting, Software development se lekar Har tarah ke work ki skills.

To wait karne ki bajay join karlo👇

@NaukriSkills
Write a Java program to check if a number is a palindrome in Java?
import java.util.*;

public class quest3 {
// Write a Java program to check if a number is a palindrome in Java? ( 121 is a
// palindrome,321 is not) A number is called a palindrome if the number is equal
// to the reverse of a number e.g.,121 is a palindrome because the reverse of
// 121 is 121 itself. On the other hand,321 is not a palindrome because the
// reverse of 321 is 123, which is not equal to 321
public static void isPalindrome(int num) {
int orignalnum = num;
int palindrome = 0;
while (num > 0) {
int remind = num % 10;
num = num / 10;
palindrome = palindrome * 10 + remind;

}

System.out.print(palindrome == orignalnum);

}

public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter any number: ");
int num = sc.nextInt();
isPalindrome(num);

}
}
Reverse Decreasing Star pattern of number n
******
*****
****
***
**
*

CODE :
 

public class pattern1 {

public static void reverseStar(int n) {
// reverse pattern
for (int i = n; i >= 0; i--) {
for (int j = 1; j <= i; j++) {
System.out.print("*");

}
System.out.println();

}

}

public static void main(String[] args) {
reverseStar(6);

}

}
Print Hollow Rectangle Pattern using java .

public class Hollowrect {
public static void HollowrectPattern(int noOfRows, int noOfCols) {
// for rows outer loop
for (int i = 1; i <= noOfRows; i++) {
// inner loop
for (int j = 1; j <= noOfCols; j++) {
// cell (i,j)
if (i == 1 || i == noOfRows || j == 1 || j == noOfCols) {
System.out.print("*");

} else {
System.out.print(" ");
}

}
System.out.println();

}

}

public static void main(String[] args) {
HollowrectPattern(4, 7);

}
}

OutPut:
*******
* *
* *
*******
1
Inverted Half Rotated Pyramid
public class invertrothalfpyramid {


public static void inverted_half_pyramid(int n) {
// outer loop
for (int i = 1; i <= n; i++) {
// empty space
for (int j = 1; j <= n - i; j++) {
System.out.print(" ");

}
// star
for (int j = 1; j <= i; j++) {
System.out.print("*");

}
System.out.println();

}

}

public static void main(String[] args) {
// InvertedHalfPiramid(4, 4);
inverted_half_pyramid(4);

}
}

Output:
   *
**
***
****
1
Inverted half pyramid of number .
public class invertedpyra {
public static void Inverted_half_pyramid(int n) {
for (int i = 1; i <= n; i++) {
// inner loop

for (int j = 1; j <= n - i + 1; j++) {
System.out.print(j);

}
System.out.println();
}
}
public static void main(String[] args) {
Inverted_half_pyramid(6);
}
}

Output:
123456       
12345
1234
123
12
1
2
Floyd`s Triangle Pattern.
public class floydtriangle {
public static void floyd(int n) {
int count = 1;
for (int i = 1; i <= n; i++) {

for (int j = 1; j <= i; j++) {

System.out.print(count + " ");
count++;
}
System.out.println();
}
}

public static void main(String[] args) {
floyd(5);

}
}

OutPut:
1 
2 3
4 5 6
7 8 9 10
11 12 13 14 15
0-1 Triangle Pattern
public class zeroone {
public static void zeroOne_Triangle(int n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
if ((i + j) % 2 == 0) {
System.out.print("1 ");

} else {
System.out.print("0 ");

}

}
System.out.println();

}

}

public static void main(String[] args) {
zeroOne_Triangle(5);

}
}

Output:
1 
0 1
1 0 1
0 1 0 1
1 0 1 0 1
2
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
Butterfly Pattern using java of number n
public class Butterflypattern {
public static void butterfly_pattern(int n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
System.out.print("*");

}
for (int j = 1; j <= 2 * (n - i); j++) {
System.out.print(" ");

}
for (int index = 1; index <= i; index++) {
System.out.print("*");

}
System.out.println();

}
for (int i = n; i >= 1; i--) {
for (int j = 1; j <= i; j++) {
System.out.print("*");

}
for (int j = 1; j <= 2 * (n - i); j++) {
System.out.print(" ");

}
for (int index = 1; index <= i; index++) {
System.out.print("*");

}
System.out.println();

}

}

public static void main(String[] args) {
butterfly_pattern(5);

}
}

Output:
*        *
** **
*** ***
**** ****
**********
**********
**** ****
*** ***
** **
* *
1