Question:

How to print 1 to 100 in applet in java programming????

by  |  earlier

0 LIKES UnLike

How to print 1 to 100 in applet in java programming????

 Tags:

   Report

2 ANSWERS


  1. To do this you have to put those to lines of code in the body of the method "paint()" :

    for(int i=1; i<=100; i++)

    g.drawString(String.valueOf(i), 10, 5 + i* 10);

    funkymido,


  2. i will give you just for loop for java rest of codes i hope you know.



    int i=1;

    while(i<101){

    print i;

    i++;

    }

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions