Though we do encourage students to work together for the purpose of exchanging ideas, discussing program design, testing each other's code, and the like, if there is evidence to support the belief that you have simply copied the work of another student, electronically or otherwise, and submitted it for evaluation as your own, your name and the name of the student(s) from whom you have copied will be reported to the Dean of Science and the Registrar, and the report will include a statement of the fact that you have cheated in the course. It is particularly important that any student who may be tempted to allow his or her work to be copied be aware that in such a situation, no distinction is drawn between the giver and the receiver of copied work.
In this course in particular, if it is determined that you have used a program to create the original Java source code based on any instructor-supplied Java binary class files, and then submit that source code as your own, you will also be deemed to have cheated.
And here is another fact worth remembering: If you copy another student's source code and attempt to make changes to disguise the fact that this is what you have done, the work involved to truly succeed in that endeavor will quite likely be much more than that involved in doing the assignment in the first place.
So ... let us state the bottom line as starkly as possible:
A zero-tolerance rule in regard to cheating is in effect. If you are deemed to have cheated in this course and are caught, it will be reported. What happens after that is neither the responsibility nor the concern of the instructor of this course. And finally, the instructor will not engage in any discussion about why you felt compelled to cheat. In particular, neither peer pressure nor good samaritanism is an acceptable excuse.