Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
23 changes: 23 additions & 0 deletions 23 20092018/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*

- Classes must always be named starting with Capital letters
- Public classes must always be on a file with the same name as the class
- read from args: args[0]

= HOMEWORK:
a = Print a list of numbers from 0 to 10
b = Print a list of numbers from 10 to 0
*/

public class HelloWorld{

public static void main (String args[]){
//int n = 50;
for(int i=0; i<10; i++){
System.out.println("Hello guy");
}

}


}
25 changes: 25 additions & 0 deletions 25 20092018/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class Main {
public static long fib(int input){
if(input <= 1 && input >= 0){
return input;
}
else if(input < 0) {
return (-1) * (fib(input + 1) - fib(input + 2));
}
else{
return fib(input - 1) + fib(input - 2);
}
}

public static void main(String[] args) {
System.out.println("List of first 20 negative Fibonacci numbers:\nindex\tresult\n");
for(int i=-20; i<0; i++){
System.out.println(i + 1 + "\t" + fib(i + 1));
}

System.out.println("\nList of first 20 positive Fibonacci numbers:\nindex\tresult\n");
for(int i=0; i<20; i++){
System.out.println(i + 1 + "\t" + fib(i + 1));
}
}
}
3 changes: 0 additions & 3 deletions 3 20092018/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ Yes I know, you found out the amazing power of pressing tab and having the auto-
[Creating Environment variables: ](https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/)


## Exercises
This module has a HackerRank challenge, you can check it on the following page: [www.hackerrank.com/elte-basicjava-module-1](http://www.hackerrank.com/elte-basicjava-module-1)


## Documentation regarding the examples:

Expand Down
4 changes: 2 additions & 2 deletions 4 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Even better, let's remember some stuff then...
Any sort of plagiarism, copies, ideological falsehood or unlawful behavior may be subject of auction in the format of the university regulations.

#### Course grades
* Challenges and class exercises (10%)
* Final assignment (40%)
* Challenges and class exercises (20%)
* Final assignment (30%)
* Exam (50%)

* Accepted pull requests can count as extra points in all the activities with grades, being that these points will never compose more than 30% of the grade.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.