Lab 1
Introduction to Java environment and lab tools.
Objectives
Documentation
Exercise 1
Exercise 2
NOTE: User account format will be: nume-prenume-grupa. Ex: popescu-dan-30123
After register github account please answer to
this form;
Exercise 3
NOTE: By following and accepting assignment a git repository will be created in your github account.
Exercise 4
cd c:\UTCN\isp
git clone {repository-link}
cd c:\UTCN\isp\{repository-folder}
Exercise 5
Import project cloned in previous step in Intellij IDEA
Run main class from IntelliJ IDEA
Observe that subtract function has a wrong implementation. Fix the implementation, rerun tests and make sure all tests pass
Commit and push all changes to remote repository using commands:
git add .
git commit -m "Fix issue with substract method."
git push
Exercise 6
Add a new method 'multiply' in class “Example” which will multiply 2 arguments and will return the results;
Add a test for the newly created method;
Run tests and make sure all tests pass;
Add all your changes and push them to remote repositoy;
Exercise 7
package isp.lab1
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}