What do you want to save?
Add Code snippet
New code examples
-
-
Javascript 2021-10-29 02:59:14
selected dropdown value
Plain JavaScript: =================== var e = document.getElementById("elementId"); var value = e.options[e.selectedIndex].value; var text = e.options[e.selectedIndex].text; --------------------------------------------------------- jQuery: =====... Add solution -
Java 2021-10-28 19:50:11
three address code generation program in java
/* Program to implement Three Address Code in Java Author: Surajit Karmakar Author Link: https://www.facebook.com/surajit.3528 www.pracspedia.com */ import java.io.*; class ThreeAddressCode { private static final char[][] precedence = { {'/', '1'}... Add solution -
Java 2021-10-28 13:37:09
Transpose of a matrix in java using BufferedReader
// Transpose of a matrix in java using BufferedReader import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class TransposeMatrixDemo { public static void main(String[] args) throws IOException { ... Add solution -
Javascript 2021-10-28 08:03:06
change image src using jquery
//change image src with jquery $("#myImageID").attr("src","images/my_other_image.png"); //change image src plain javascript document.getElementById('myImageID').src="images/my_other_image.png"; Add solution -
C++ 2021-10-27 11:24:10
why constructor can't be static in c++
static variable are those variable declared with static and i will be refer to the common property of all the objects in a java and it is mainly used for memory managment in java. constructor is used to inilialize the objects and it is automatically calle... Add solution -
Java 2021-10-26 14:14:10
reading zip file in java
import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.Enumeration; import java.util.zip.ZipEntry; import java.ut... Add solution
Best helpers
Ranking is empty