George John has Published 1167 Articles

LongStream toArray() method in Java

George John

George John

Updated on 30-Jul-2019 22:30:25

94 Views

The toArray() method of the LongStream class returns an array containing the elements of this stream.The syntax is as follows.long[] toArray()To use the LongStream class in Java, import the following package.import java.util.stream.LongStream;Create LongStream and add some elements.LongStream longStream = LongStream.of(25000L, 28999L, 6767788L);Create a Long array and use the toArray() method ... Read More

8085 program to find the factorial of a number

George John

George John

Updated on 30-Jul-2019 22:30:25

8K+ Views

In this program we will see how to find the factorial of a number.Problem StatementWrite 8085 Assembly language program to find the factorial of an 8-bit number.DiscussionIn 8085, there is no direct instruction to perform multiplication. We need to perform repetitive addition to get the result of the multiplication. In ... Read More

How to fasten MySQL inserts?

George John

George John

Updated on 30-Jul-2019 22:30:25

89 Views

You can speed the MySQL insert when you are inserting multiple records at the same time with the help of the following syntaxSTART TRANSACTION insert into insertDemo(yourColumnName1, yourColumnName2, ...N) values(yourValue1, yourValue2, ....N), (yourValue1, yourValue2, ....N), .......N commitLet us first create a demo tablemysql> create table insertDemo    -> (   ... Read More

C++ Program to Perform Searching Using Self-Organizing Lists

George John

George John

Updated on 30-Jul-2019 22:30:25

248 Views

Self-Organizing list basically updates the list of given range of items on the basis of last searched item. In this method, the sequential searching approach is used. This algorithm shifts the more important data to the beginning of the list. The time complexity of this search technique is O(n).AlgorithmBegin   ... Read More

8085 program to find minimum value of digit in the 8 bit number

George John

George John

Updated on 30-Jul-2019 22:30:25

355 Views

In this program we will see how to find the minimum digit from a two-digit number.Problem StatementWrite 8085 Assembly language program to find the minimum digit from a two-digit number. The number is stored at location 8000H, store the result at 8050H.DiscussionHere we are performing this task by using masking ... Read More

How to use action in JSP?

George John

George John

Updated on 30-Jul-2019 22:30:25

3K+ Views

The useBean action is quite versatile. It first searches for an existing object utilizing the id and scope variables. If an object is not found, it then tries to create the specified object.The simplest way to load a bean is as follows −Once a bean class is loaded, you can ... Read More

LongStream limit() method in Java

George John

George John

Updated on 30-Jul-2019 22:30:25

43 Views

The limit() method of the LongStream class in Java returns a stream consisting of the elements of this stream, truncated to be no longer than max in length. Here, max is the parameter of the method.The syntax is as follows.LongStream limit(long max)Here, max is the number of elements the stream ... Read More

8085 program to check whether the given 16 bit number is palindrome or not

George John

George John

Updated on 30-Jul-2019 22:30:25

325 Views

In this program, we will see how to check a 16-bit number is a palindrome or not.Problem StatementWrite the 8085 Assembly language program to check a 16-bit number is palindrome or not. The number is stored at location 8000H and 8001H.DiscussionA number is a palindrome if the number and its ... Read More

How do I stop a MySQL decimal field from being rounded?

George John

George John

Updated on 30-Jul-2019 22:30:25

459 Views

You can stop rounding decimal field with the help of DECIMAL() function. Here is the demo of a rounded decimal field. For our example, let us first create a demo tablemysql> create table stopRoundingDemo    -> (    -> Amount DECIMAL(7)    -> ); Query OK, 0 rows affected (0.67 ... Read More

Pin diagram of 8086 microprocessor

George John

George John

Updated on 30-Jul-2019 22:30:25

11K+ Views

The Intel 8086 is 40 pin DIP Microprocessor. Here we will see the actual pin level diagram of 8086 MPU.8086 was the first 16-bit microprocessor available in 40-pin DIP (Dual Inline Package) chip. Let us now discuss in detail the pin configuration of a 8086 Microprocessor.This is the actual pin ... Read More

Advertisements