Skip to content

vivekupstreamAssignment#195

Open
vivekkatari wants to merge 1 commit intokscanne:masterfrom
vivekkatari:vivekkatari-Upstream-Assignment
Open

vivekupstreamAssignment#195
vivekkatari wants to merge 1 commit intokscanne:masterfrom
vivekkatari:vivekkatari-Upstream-Assignment

Conversation

@vivekkatari
Copy link

No description provided.

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter a word: ");
String word = scanner.nextLine();

Choose a reason for hiding this comment

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

It would be easy to write a word in a new line and it can be easy to find a word .

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion, but i feel there wont be difference if we write code in different lines

String lowerCaseWord;
String languageTag = locale.toLanguageTag();

if (languageTag.startsWith("tr") || languageTag.startsWith("az")) lowerCaseWord = word.replace("I", "ı");

Choose a reason for hiding this comment

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

I would be nice if you use brackets .

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the suggestion The functionality is work as expected so there would be no difference in updating the code.

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