Write a java program to display Rhombus

import java.util.*;
class Rhombus
  public static void main(String args[])
   Scanner sc=new Scanner(System.in);
  System.out.print("Enter the pattern number");
  int pat=sc.nextInt();
  System.out.print("Enter the pattern character symbol");
  String s=sc.next();
  char c = s.charAt(0);
  for( int i=1;i<=pat;i++)
    for(int j=1;j<=(pat-i);j++)
    System.out.print(" ");
    for(int k=1;k<=i;k++)
    System.out.print(c+" ");

   for(int i=pat-1;i>=0;i--)
    for(int j=1;j<=(pat-i);j++)
    System.out.print(" ");
    for(int k=1;k<=i;k++)
    System.out.print(c+" ");

For more details about How to Earn Money Online please visit


College Projects with source code (PHP, .NET, JAVA, Visual Basic)

Pharmacy Management System in PHP and MySQL with Source Code

2018 Top WordPress Plugins for Business Websites

Top 10 Best Photo Editing Apps For Android

Best 2018 Android Hacking Apps

30 Best Free WordPress Blog Themes for 2017

Online Loan Management System

Car Rental System Using PHP

Online Jewellery Shopping System Php Project with source code

Online time table generation system in PHP

Online Examination System In PHP

PHP Website with DataBase As MySql

18 Ways to Earn Money Online from Home Without Investment

Online Survey Jobs: Earn from 20 Best Paid Survey Sites

Get Paid to Take Online Surveys for Money with 21 Best Sites

Top 10 Captcha Entry Job Sites

Best Get Paid to Offer & GPT Sites

Get Paid to Read & Click Ads from Best PTC Sites

How To Restore Your WordPress Website Backup On Local Server Using WAMP

Online Shopping System Using PHP and MySQL

Email server using PHP and MySQL

Hotel Reservation System In PHP

social media platforms Project In PHP

Crime Reporting System Project In PHP

Gmail Outlook Settings In Outlook 2016

Airlines Reservation System Java Project

Mail Server in PHP And MySQL

Online Examination System in PHP and MySQL

Student Information System using Vb and SQL

Payroll Management System In VB and SQL

Exam Seating Management System

Automation Inventory System in VB and SQL Server

School Management System

No comments

Powered by Blogger.