Skip to content

Instantly share code, notes, and snippets.

@969rishi
969rishi / StarPattern.java
Last active October 1, 2023 20:31
All type of star patterns
public class Main {
public static void main(String[] args) {
// System.out.println("Hello world!");
for (int i = 0; i < 6; i++) {
for (int j = 0; j < 5; j++) {
if (i>j)
System.out.print(" * ");
}
System.out.print("\n");
@969rishi
969rishi / PalindromeWord.java
Created September 28, 2023 22:21
Palindrome Word Solution in Java
/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
public class Main
{
@969rishi
969rishi / PalindromeNumber.java
Last active September 28, 2023 22:22
Palindrome number solution Program in Java by Rishi
/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.util.ArrayList;
public class Main
import java.util.*;
import java.text.*;
import java.util.Date;
public class Tex {
String strToprintDt1;
String strToprintDt2;
String CurrntDatevar;
String[] ddfrmdt;