package Ġcom . ju ang m . room word sample . data . local Ċ Ċ import Ġandroid . os . AsyncTask Ċ import Ġcom . ju ang m . room word sample . ui . models . Word Ċ Ċ class ĠPopulate Db Async Ġinternal Ġconstructor ( db : ĠWord Room Database ?) Ġ: ĠAsync Task < Void , ĠVoid , ĠVoid >() Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġm Dao Ġ= Ġdb ?. word Dao () ĊĊĠĠĠ Ġoverride Ġfun Ġdo In Background ( var arg Ġparams : ĠVoid ): ĠVoid ? Ġ{ ĊĠĠĠĠĠĠĠ Ġm Dao ?. delete All () ĊĠĠĠĠĠĠĠ Ġvar Ġword Ġ= ĠWord (" Hello ") ĊĠĠĠĠĠĠĠ Ġm Dao ?. insert ( word ) ĊĠĠĠĠĠĠĠ Ġword Ġ= ĠWord (" World ") ĊĠĠĠĠĠĠĠ Ġm Dao ?. insert ( word ) ĊĠĠĠĠĠĠĠ Ġreturn Ġnull ĊĠĠĠ Ġ} Ċ }