If you copypasted some source code from internet you have to mention it in the very beginning of file where you took this code and under which license. Also if this file was originally located at some specific package then it is good idea leave this class in the same package