diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..3d0eed9 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +tasks: + - command: for i in {1..3}; do code --uninstall-extension vscjava.vscode-java-test; sleep 15; done + - command: for i in {1..6}; do chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && ssh-keyscan github.com >> ~/.ssh/known_hosts; sleep 20; done + - command: git remote set-url origin git@github.com:uyi247/uyi247-Start.git && sed "s/\r$//" commit-command.sh | bash +vscode: + extensions: + - redhat.java + - vscjava.vscode-java-debug + - revaturePro.revature-labs \ No newline at end of file diff --git a/commit-command.sh b/commit-command.sh new file mode 100644 index 0000000..b73f65f --- /dev/null +++ b/commit-command.sh @@ -0,0 +1,9 @@ +cat <.git/hooks/post-commit +git push +git log -1 --shortstat > history_log.txt +EOF +chmod +x .git/hooks/post-commit +cat <.git/hooks/pre-commit +chmod 600 ~/.ssh/id_rsa && chmod 644 ~/.ssh/id_rsa.pub && ssh-keyscan github.com >> ~/.ssh/known_hosts +EOF +chmod +x .git/hooks/pre-commit \ No newline at end of file diff --git a/src/main/java/Questions.java b/src/main/java/Questions.java index 140e095..b5daee0 100644 --- a/src/main/java/Questions.java +++ b/src/main/java/Questions.java @@ -3,13 +3,14 @@ * Note: The exercise expects you to have read the "Entities of Java" topic in the curriculum. */ public class Questions { + int question1(){ /* * Replace the 0 in the return statement with the answer you believe to be true for the question below * * How many variables are in the class "Vehicle"? - */ - return 0; + */ + return 3; } int question2(){ @@ -18,14 +19,15 @@ int question2(){ * * What line number represents the end of the "accelerate" method? */ - return 0; + return 14; } String question3(){ /* * What datatype is expected to be returned in the "honk" method? */ - return "replace this text with your answer"; + return "String"; + } }