Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class Students {
  2. String Starosta;
  3. String [] name={"Петя","Витя","Маша","Гриша","Света","Коля","Никита","Вика","Артур","Валера","Дима"};
  4.  
  5. public void getName(){
  6.  
  7. }
  8. public static void main(String[] args) {
  9. Students student1= new Students();
  10. Students student2= new Students();
  11. Students student3= new Students();
  12. Students student4= new Students();
  13. Students student5= new Students();
  14. Students student6= new Students();
  15. Students student7= new Students();
  16. Students student8= new Students();
  17. Students student9= new Students();
  18. Students student10= new Students();
  19. student1.getName();
  20. System.out.println(student1.nextInt(10));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement