cayhorstmann
hw1
, hw2
, lab1
, exam1
, ...Arrays.swapLargestAndSmallest(int[] a)
that swaps the largest and smallest element in a. If there are multiple largest or smallest elements, pick the first one.cs151
. Add me (cayhorstmann
) as a collaborator with Write access (in Settings → Access Management → Users).git
:
git --versionIt doesn't matter what version you have. If you don't have git, use
sudo apt-get install giton Ubuntu. See here for Mac. On Windows, use the Ubuntu virtual machine that you should have installed before class. It has git.
git clone git@bitbucket.org:yourname/cs151.git
cs151
subdirectory that was created by git clone
, make a subdirectory lab1
Arrays.java
with the solution to the simple programming problem. If you couldn't solve the problem, just put in the outline from CodeCheck.cd cs151
git add lab1/Arrays.java
git commit -a -m "Added lab1"
git push origin master
Arrays.java