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

vivekupstreamAssignment #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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