Search:

Type: Posts; User: IDK12

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    3,316

    Re: adding main method to a code

    Can you explain for me what encapsulating mean. And why shoudn't i use that producenumber method. Isn't the whole point of orient programming language all about, to have different methods and classes?
  2. Replies
    5
    Views
    3,316

    adding main method to a code

    import java.util.Random;

    public class test {

    public int produceNumber()
    {

    Select = (s.nextInt(sList.length));

    return Select;
Results 1 to 2 of 2