
Search In
Convert Java util.Date to sql.Date
This piece of code shows how to convert a java util Date into a sql Date for use in database.
java.util.Date util_date = new java.util.Date();
java.sql.Date sql_date = new java.sql.Date(util_date.getTime());
C
In this tutorial we will make a simple android timer application using a Handler.In the layout of the main activity we will set a TextView to Display the timer and to Buttons for Start and Pause. We set the string resource for the timer value.
Delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. Delegates concept will match with function pointer concept of c++ language.
We use delegate keyword when we need to create
Here the below code will show you how to inject the List in Spring using the spring.xml file. By using that we will inject the list object in spring.
Person.java
package com.evon;
public class Person {
String name;
String address;
in
Here the below code will show you how to inject the Map in Spring using the spring.xml file. By using that we will inject the Map object in spring. -
Person.java
package com.evon;
public class Person {
String name;
String address;
int
Here the below code will show you how to inject the Set in Spring using the spring.xml file. By using that we will inject the Set object in spring.
Person.java
package com.evon;
public class Person {
String name;
String address;
int
This Post ll help you to manage your alarm :
AlarmManager am=(AlarmManager)getSystemService(ALARM_SERVICE);
Intent alarmintent1=new Intent(MainActivity.this, AlarmReceiver.class);
PendingIntent sender1=PendingIntent.getBroadcast(SpeedMotors.this, 1
In Java 8 we can also use double colon(::) as the method reference. By using double colon(::) operator we can easily convert normal method into lambda expression.
The below example will show you how you will convert normal method into lambda expres
SmartLock for passwords saves your favorites apps and websites accounts authentication to your google account for future use for fast Login.
With SmartLock for passwords you save authentication in Android app may be available on Chrome on System. or
In previous blog we added openCV android sdk and native libraries in our project so that we can use sdk.
Here we will show camera in our Android app using openCV sdk.
in your activity's xml file add this :
<org.opencv.android.JavaCameraVie
