Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions commit-command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cat <<EOF >.git/hooks/post-commit
git push
git log -1 --shortstat > history_log.txt
EOF
chmod +x .git/hooks/post-commit
cat <<EOF >.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
10 changes: 6 additions & 4 deletions src/main/java/Questions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand All @@ -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";

}

}