Search
 
SCRIPT & CODE EXAMPLE
 

DART

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");
  }
}
Comment

PREVIOUS NEXT
Code Example
Dart :: DioError (DioError [DioErrorType.DEFAULT]: Converting object to an encodable object failed: Instance of 
Dart :: convert string to double flutter 
Dart :: flutter baseline 
Dart :: what will do for each in dart 
Dart :: shape property of card in flutter 
Dart :: imageprovider flutter 
Dart :: how to display current date time in flutter 
Dart :: get current date in dart 
Dart :: alertdialog shape flutter 
Dart :: listview flutter give padding to list bottom 
Dart :: flutter only portrait 
Dart :: flutter textfield align center text 
Dart :: data types in flutter 
Dart :: dart object to map 
Dart :: dart list generate 
Dart :: alertdialog padding flutter 
Dart :: text substring dart 
Dart :: splash screen flutter null safety 
Dart :: card in flutter 
Dart :: dart any 
Dart :: odd even in dart 
Dart :: how to avoid special characters in validator 
Dart :: flutter logo style 
Dart :: how to create random gradient in flutter 
Dart :: dart typedef 
Dart :: how to define format snippet of class name as file name in dart : flutter 
Dart :: dart language asynchronous ?? 
Dart :: flutter how to load a future function in main function 
Dart :: flutter const advantag 
Dart :: flutter display alert dialog after server error 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =