Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
void main() {
List l = [1, 2, 3,4,5,6,7,8,9];
print('The value of list before replacing ${l}');
l.replaceRange(0,3,[11,23,24]);
print('The value of list after replacing the items between the range [0-3] is ${l}');
}
void main() {
var a = 2; // Bit presentation 10
var b = 3; // Bit presentation 11
var result = (a & b);
print("(a & b) => ${result}");
result = (a | b);
print("(a | b) => ${result}");
result = (a ^ b);
print("(a ^ b) => ${result}");
result = (~b);
print("(~b) => ${result}");
result = (a < b);
print("(a < b) => ${result}");
result = (a > b);
print("(a > b) => ${result}");
}
import 'dart:isolate';
void foo(var message){
print('execution from foo ... the message is :${message}');
}
void main(){
Isolate.spawn(foo,'Hello!!');
Isolate.spawn(foo,'Greetings!!');
Isolate.spawn(foo,'Welcome!!');
print('execution from main1');
print('execution from main2');
print('execution from main3');
}
import 'dart:io';
void main() {
print("Enter your name :");
// prompt for user input
String name = stdin.readLineSync();
// this is a synchronous method that reads user input
print("Hello Mr. ${name}");
print("End of main");
}