Skip to content

Instantly share code, notes, and snippets.

View Blasanka's full-sized avatar
🚀
Flutter dev

B Liyanage Asanka Blasanka

🚀
Flutter dev
View GitHub Profile
@basavesh
basavesh / DoublyLinkedList.java
Created November 9, 2012 08:35
DoublyLinkedList.java
package edu.cmu.cs771.hw1;
/**
* This class implements a doubly linked list of characters in Java.
* The instance variables head and tail are initially null.
* As elements are added head points to the first element on the list and tail points to the last element. Each node on the list is of type DoubleNode.
* Each DoubleNode holds a pointer to the previous node and a pointer to the next node in the list.
* @author songluo
*
*/
@aruld
aruld / foreachmap.dart
Created October 19, 2011 18:29
Dart forEach() on a Map
main() {
Map<String, int> map = {
'one': 1,
'two': 2,
'twelve': 12};
void iterateMapEntry(key, value) {
map[key] = value;
print('$key:$value');//string interpolation in action
}