joseleonweb

Untitled

Jan 12th, 2021
465
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.ArrayList;
  2. public class Student {
  3.     public static void main(String[] args) {
  4.     ArrayList<String> studentNames = new ArrayList();
  5.     addStudents(studentNames);
  6.     }//end method main
  7.    
  8.     static void addStudents(ArrayList studentNames) {
  9.         //Add the names of everyone in your class
  10.         studentNames.add("Mark");
  11.         studentNames.add("Andrew");
  12.         studentNames.add("Beth");
  13.         . . .
  14.     }//end method addStudents
  15. }//end class Student
  16.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×