Skip to content

Commit

Permalink
Adding Greeting.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Mishra committed Jun 26, 2023
1 parent 77a0203 commit 495b41a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions aarSample/src/main/java/com/example/aarsample/Greeting.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.example.aarsample

import android.app.Activity
import android.content.Context
import android.widget.Toast

class Greeting {
fun generateGreetMessage(name: String): String {
return "Welcome $name"
}

fun showToast(mContext: Context, message: String) {
Toast.makeText(mContext, message, Toast.LENGTH_LONG).show()
}
}

0 comments on commit 495b41a

Please sign in to comment.