Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Мимика Максим. Задание 02_06 #8959

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 2 additions & 8 deletions 02-java-types/task06/src/com/example/task06/Task06.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@
public class Task06 {

public static int solution(int x, int y) {

// TODO напишите здесь свою корректную реализацию этого метода, вместо сеществующей

return 0;
long result = (long) x + y;
return Long.toString(Math.abs(result)).length();
}

public static void main(String[] args) {
// Здесь вы можете вручную протестировать ваше решение, вызывая реализуемый метод и смотря результат
// например вот так:
/*
int result = solution(12, 34);
System.out.println(result);
*/
}

}