To generate prime numbers in JavaScript, you can try to run the following codeExampleLive Demo JavaScript Prime for (var limit = 1; limit
Microsoft has officially renamed Office Web Apps as Office Online which includes the online versions of its popular Word, PowerPoint and Excel apps, using this user can find their free online experience. Also, name “SkyDrive” has become “OneDrive”. The new name doesn’t come up with lots of new features, but there are some changes that come with renaming.Just visit the Office.com site: https://www.office.com/start/default.aspx, and start using the Microsoft Word Online, Excel Online, PowerPoint Online and OneNote Online. Users just need a Microsoft Account(available with any email address) to use the Office Online. After creating a Microsoft Account, just log in, ... Read More
Microsoft updated “Device Health” for Windows 8.1, aims to develop online security of Banking and Financial account section for users’ better operation. This update will observer and check the PC security status before user getting into the sensitive banking and financial transactions online.Device Health service is a Window based service, provides devices’ health information. After installation of this software, you will be encouraged to accept secure software usage practices to ensure that the certified e-commerce and online banking partners can offer better security, based on the data expected from Device Health.How to install Device Health?To install Device Health update, go ... Read More
The character classes in Java regular expression is defined using the square brackets "[ ]", this subexpression matches a single character from the specified or, set of possible characters. For example the regular expression [abc] matches a single character a or, b or, c.The union variant of the character class allows you to match a character from one of the specified ranges i.e. the expression [a-z[0-9]] matches a single character which is either a small alphabet (a-z) or a digit (0-9).Example Live Demoimport java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexExample1 { public static void main(String[] args) { ... Read More
The character classes in Java regular expression is defined using the square brackets "[ ]", this subexpression matches a single character from the specified or, set of possible characters. For example, the regular expression [abc] matches a single character a or, b or, c.The range variant of the character class allows you to use a range of characters i.e the expression [a-z] matches a single character from the alphabets a to z and the expression [^A-Z] matches a character which is not a capital letter.Example 1 Live Demoimport java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexExample1 { public static void ... Read More
The character classes in Java regular expression is defined using the square brackets "[ ]", this subexpression matches a single character from the specified or, set of possible characters.For example the regular expression [abc] matches a single character a or, b or, c. Similarly, "[a-z]" matches a single character from a to z.Similarly, the negation variant of the character class is defined as "[^ ]" (with ^ within the square braces), it matches a single character which is not in the specified or set of possible characters.For example the regular expression [^abc] matches a single character except a or, b ... Read More
To match/search a input data with multiple lines −Get the input string.Split it into an array of tokens by passing "\r?" as parameter to the split method.Compile the required regular expression using the compile() method of the pattern class.Retrieve the matcher object using the matcher() method.In the for loop find matches in the each element (new line) of the array using the find() method.Reset the input of the matcher to the next element of the array using the reset() method.Example Live Demoimport java.util.regex.Matcher; import java.util.regex.Pattern; public class MatchingText{ public static void main(String[] args) { String input = ... Read More
$ operatorOperator is used to define variables in php. For example, message. Such variables can contain any type of value like int, string, etc.$$ operator$$ is a special operator that contains the name of another variable and can be used to access the value of that variable.ExampleFollowing the example, shows the usage of '′vs′$' operators. Live Demo PHP Example Outputmessage Welcome to Tutorialspoint
The split() method of the String class accepts a regular expression, splits the current input text into tokens and returns them as a string array.Example Live Demoimport java.util.Scanner; public class Example{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter input text: "); String input = sc.nextLine(); String[] strArray = input.split("\d"); for (int i=0; i
'AND' Logical operator'AND' operator is a logical AND operator but has low precedence to = operator.'&&' Logical operator'&&' is also a logical AND operator but has high precedence to = operator.ExampleFollowing the example, shows the difference of 'AND' vs '&&' operators. Live Demo PHP Example Output$result = $x AND $y bool(true) $result = $x && $y bool(false)
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP