What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-18 06:45:12
how to find area of polygon with coordinates in javascript
Algorithm to find the area of a polygon If you know the coordinates of the vertices of a polygon, this algorithm can be used to find the area. Parameters X, Y Arrays of the x and y coordinates of the vertices, traced in a clockwise direction, starting at... Add solution -
Java 2021-10-17 21:53:05
abstraction example in java
bstraction: Hiding the implementation details, concentrating on essentials things, without worrying about the details ■ In java, abstraction is achieved via abstract class or interface ■ Abstraction cannot exist without inheritance 3.1. Abstract cla... Add solution -
Java 2021-10-16 23:06:04
java coding standards for constants
Constants in java are created using static and final keywords. 1) Constants contains only uppercase letters. 2) If constant name is combination of two words it should be separated by underscore. 3) Constant names are usually nouns. Ex:MAX_VALUE, MIN_VALU... Add solution -
Javascript 2021-10-16 16:21:03
jQuery check element has focus
//test if element has focus in jQuery if ($("#myElementID").is(":focus")) { //I have the focus } //test if element has focus in plain Javascript var myElement = document.getElementById('myID'); if(myElement === document.act... Add solution -
Java 2021-10-16 10:26:15
what is an instance in java
Instance variables in Java are non-static variables which are defined in a class outside any method, constructor or a block. Each instantiated object of the class has a separate copy or instance of that variable. An instance variable belongs to a class. Add solution -
Java 2021-10-15 04:20:05
difference between integer and int
int is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt("1") doesn't make sense because int is not a class and therefore doesn't have any methods. Integer is a class, no d... Add solution
Best helpers
Ranking is empty