Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

dart char is uppercase

import 'dart:io';

main() {
  print("Enter a string : ");
  var str = stdin.readLineSync();

  if (str[0].toUpperCase() == str[0]) {
    print("The first character is uppercase");
  } else {
    print("The first character is not uppercase");
  }
}
Source by www.codevscolor.com #
 
PREVIOUS NEXT
Tagged: #dart #char #uppercase
ADD COMMENT
Topic
Name
7+1 =