Pattern rhombus

import java.util.;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int temp=2;
int inc=N-1;
for(int i=0;i<1;i++){
for(int j=0;j<N-1;j++){
System.out.print("\t");
}
for(int j=1;j<=1;j++){
System.out.print(j+"\t");
}
for(int j=0;j<N-1;j++){
System.out.print("\t");
}
System.out.println();
}
for(int i=1;i<=N-1;i++){
for(int j=1;j<N-i;j++){
System.out.print("\t");
}
for(int j=temp;j<=2
i+1;j++){
System.out.print(j+"\t");
}

		for(int j=2*i;j>i;j--){
			System.out.print(j+"\t");
		}
		for(int j=1;j<N-i;j++){
			System.out.print("\t");
		}
		temp++;
		System.out.println();
	}

	for(int i=N-1;i>1;i--){
		for(int j=1;j<=N-i;j++){
			System.out.print("\t");
		}
		for(int j=inc;j<=2*i-1;j++){
			System.out.print(j+"\t");
		}
		
		for(int j=2*i-2;j>i-1;j--){
			System.out.print(j+"\t");
		}
		for(int j=1;j<=N-i;j++){
			System.out.print("\t");
		}
		inc--;
		System.out.println();

	}
	for(int i=0;i<1;i++){
		for(int j=0;j<N-1;j++){
		System.out.print("\t");
		}
		for(int j=1;j<=1;j++){
			System.out.print(j+"\t");
		}
		for(int j=0;j<N-1;j++){
		System.out.print("\t");
		}
		System.out.println();
	}

}

} review my code and tell y 1 test case is failed

@niharikareddykeesara_139be65b4266e2f2 before I tell you the solution to your doubt there’s a little advice I would give that whenever you send code in your doubt body. Add three double quotes before and after your code starts and ends.

“”"
//Code
“”"

Now your one test case is failing because : when the input is : 1
Correct output = 1
Your Code is giving :
1
1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.