Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
class Hstgrm
{
public static void main(String z[])
{
int n=165, rn=0;
while(n!=0)
{
rn=(rn*10)+(n%10);
n=n/10;
}
n = rn;
while(n!=0)
{
for(int i=1; i<=(n%10); i++)
{
System.out.print("*");
}
n=n/10;
System.out.println(" ");
}
}
}