Skip to content

Homework 6 is done#3

Open
ushki92 wants to merge 1 commit into
masterfrom
lesson6
Open

Homework 6 is done#3
ushki92 wants to merge 1 commit into
masterfrom
lesson6

Conversation

@ushki92

@ushki92 ushki92 commented Sep 11, 2021

Copy link
Copy Markdown
Owner

No description provided.

@DisterDE DisterDE left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошая работа, но требует доработок.
Молодец.

Comment on lines +32 to +33
StringBuilder sb = new StringBuilder();
sb.append(fullName2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно заменить на String result = new String(fullName2);

fullNameLowerArr[0] = Character.toUpperCase(fullNameLowerArr[0]);
for (int i = 0; i < fullNameLowerArr.length; i++) {

if (fullNameLowerArr[i] == ' ') {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если пробел стоит в конце и после него не будет буквы?

Comment on lines +72 to +83
char c = taskSevenBuild.charAt(1);
char d = taskSevenBuild.charAt(4);
char e = taskSevenBuild.charAt(2);
char f = taskSevenBuild.charAt(5);
taskSevenBuild.deleteCharAt(1);
taskSevenBuild.deleteCharAt(1);
taskSevenBuild.deleteCharAt(3);
taskSevenBuild.deleteCharAt(2);
taskSevenBuild.append(c);
taskSevenBuild.append(d);
taskSevenBuild.append(e);
taskSevenBuild.append(f);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не-а. Это должно быть сделано циклом. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants