
snake and ladder
Hi i am designing an applet for the game snake and ladder .this is my code:
import java.applet.*;
import java.awt.*;
public class snake extends Applet{
public void paint(Graphics g){
int w = getSize().width;
int h = getSize().height;
setBackground(Color.white);
g.setColor(Color.black);
g.drawRect(0,0,500,500);
for(int i=0;i<10;i++){
for(int j=0;j<10;j++){
g.drawRect(i*50,j*50,50,50);
}}}}
Now i have to write the integers 1100 in the boxes ..
Can anyone tell me the method to do it...as i am unable to find any method like drawint()...
Please help

You may have better luck getting decent answers for your questions if you provide more detail on the problem and on what you've tried for a solution that doesn't work. A good resource that will give you suggestions on just what information to provide is in my signature links below titled "how to ask smart questions...". Please check it out.

understand it better
Hii
I am sorry if u cant understand my prob..
Actually i am just trying to design a snake and ladder box(saapsidi) in which i have to make 100 boxes and write numbers from 1100 in each box..
so i want to know a method to do it...
i have already made the boxes by above code.
thnx..