Histogram Printing Program - Online Code

Description

The above code prints the histogram.

Source Code

import javax.swing.*;



 public class Histogram

 {

   public static void main( String args[] )

   {

     int n[] = { 19, 3, 15, 7, 11, 9, 13, 5, 17, 1 };

     String output = "";



     output += &quo
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.