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?
Type: Posts; User: IDK12
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?
import java.util.Random;
public class test {
public int produceNumber()
{
Select = (s.nextInt(sList.length));
return Select;