What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-19 14:48:27
generating javadoc
javadoc -d <path to output> <java file> Add solution -
Java 2021-10-27 18:30:04
How to prevent Screen Capture in Android
/* * Go to MainActivity.java file Add following import statements */ import android.view.WindowManager; import android.os.Bundle; /* * Add following method in MainActivity class to Prevent Screen Capture in Android */ @Override protected void onCreate(B... Add solution -
Java 2021-10-16 03:45:12
how to import a self written class in java
// State this in the class that you have created... package assignment1; public class myClass { ... public Complex() {return....} ... } //Import this class then in another class/java file that you have written import assignment1.myClass; Add solution -
Other 2021-09-27 10:03:02
android listview to recyclerview
Import dependency. Replace ListView with RecyclerView. Replace ListView with RecyclerView in the Java file. Update the adapter. Update the ViewHolder. Update the constructor. Override onCreateViewHolder method. Override onBindViewHolder method. Modify get... Add solution