Conversation
| @@ -0,0 +1,30 @@ | |||
| new Locale(language) | |||
There was a problem hiding this comment.
I would be great if we write them in a class, as new a key word to generate memory
| new Locale(language, country) | ||
| new Locale(language, country, variant) | ||
|
|
||
| class JavaCharactertoLowerCaseExample1 { |
There was a problem hiding this comment.
It would be easy to read or reuse if we give variable short.
| @@ -0,0 +1,30 @@ | |||
| new Locale(language) | |||
There was a problem hiding this comment.
import statement may help in importing local languages
| Locale trlocale= new Locale("tr-TR"); | ||
| Locale enLocale = new Locale("en_US"); | ||
|
|
||
| Log.v("mainlist", "en source: " +myString.toLowerCase(enLocale)); |
There was a problem hiding this comment.
it would be great if we place them in a class
|
|
||
| String myString="YAŞAT Patel"; | ||
| Locale trlocale= new Locale("tr-TR"); | ||
| Locale enLocale = new Locale("en_US"); |
There was a problem hiding this comment.
may be import statements may help in importing language.
| return s2.replaceAll("(?s)\\p{InCombiningDiacriticalMarks}", ""); | ||
|
|
||
| char ch1, ch2, ch3, ch4; | ||
| ch1 = 'TANVI'; |
There was a problem hiding this comment.
hard code may not help if we want to use different word it would be great if we use flexible
| // A class to convert the case of a character and a given string | ||
| public class CharacterCaseConverter { | ||
|
|
||
| public static void main(String[] args) { |
There was a problem hiding this comment.
I'd like to see a function or method that takes two arguments, the string to lowercase, and a string representing the BCP-47 code, as described in the homework specification. The function should return the lowercase version of the string, that's all. What you have here is not doing that.
added for test cases feature
Tanvi feature
| {"a" : 3, "b" : 4, "c" : 5} scalene | ||
| {"a" : 3, "b" : 3, "c" : 1} isosceles | ||
| {"a" : 3, "b" : 4, "c" : 100} error | ||
| /* |
There was a problem hiding this comment.
Please see the instructions for the assignment. You were supposed to follow the same format as the three example lines.
No description provided.