Assign multiple classes in to a Course?

Is there a way to do that? For example; I have classes A, B, C and I want to assign those classes to Course 1. I am asking this, cause I need to assign 150 classes to a Course and it is really hard to assign 1 by 1.

You have 2 solutions:

You have 2 solutions:

- go into each class to assign the course

- write a small batch (easy to do) to automaticall assign the course in each class

Best regards,