@@ -16,18 +16,18 @@ void clear() {
1616 size = 0 ;
1717 }
1818
19- void save (Resume r ) {
19+ void save (Resume resume ) {
2020 if (size == 0 ) {
21- storage [size ] = r ;
21+ storage [size ] = resume ;
2222 size ++;
2323 } else {
2424 for (int i = 0 ; i < size ; i ++) {
25- if (r .uuid .equals (storage [i ].uuid )) {
25+ if (resume .uuid .equals (storage [i ].uuid )) {
2626 System .out .println ("Данный ID уже есть в списке!" );
2727 return ;
2828 }
2929 }
30- storage [size ] = r ;
30+ storage [size ] = resume ;
3131 size ++;
3232 }
3333 }
@@ -57,10 +57,10 @@ void delete(String uuid) {
5757 storage [i ] = null ;
5858 tempPosition = i ;
5959
60- Resume [] temp = new Resume [size - tempPosition - 1 ];
61- System .arraycopy (storage , i + 1 , temp , 0 , size - i - 1 );
62- System .out .println (Arrays .toString (temp ));
63- System .arraycopy (temp , 0 , storage , i , size - 1 );
60+ Resume [] tempArray = new Resume [size - tempPosition - 1 ];
61+ System .arraycopy (storage , i + 1 , tempArray , 0 , size - i - 1 );
62+ System .out .println (Arrays .toString (tempArray ));
63+ System .arraycopy (tempArray , 0 , storage , i , size - 1 );
6464 size --;
6565 return ;
6666 }
@@ -72,9 +72,9 @@ void delete(String uuid) {
7272 * @return array, contains only Resumes in storage (without null)
7373 */
7474 Resume [] getAll () {
75- Resume [] temp = new Resume [size ];
76- System .arraycopy (storage , 0 , temp , 0 , size );
77- return temp ;
75+ Resume [] tempArray = new Resume [size ];
76+ System .arraycopy (storage , 0 , tempArray , 0 , size );
77+ return tempArray ;
7878 }
7979
8080 int size () {
0 commit comments