Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hey Pankaj, From where did you get this info. man. Its really amazing, its not small task to do. I really appreciate you work. Keep up the good Job. Coming to this lesson Steam API, looks amazing to me. Thanks to Java People. Some doubts on symbol like -> to assign values and without declaring a variable you are using it.
- ADITYA VALLURU
There is one problem…in Stateless lambda expressions as you said if we use sequential stream we will not get different values but matter of fact , with sequential stream I have got different values… [10, 11, 8, 9, 14, 15, 12, 13, 1, 2] [10, 4, 11, 5, 6, 7, 8, 1, 9, 2] [10, 11, 8, 9, 4, 5, 14, 15, 12, 13] you should correct the line. If we use sequential stream, then this problem will not arise.
- Kumar
HI Pankaj I follow Your blogs regularly Your examples are pricese and upto the point Pls clarify my following doubt code: Integer[] array = new Integer[]{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; for(int i = 0; i 15) System.out.println(“i > 15”); } code ends: can You tell how can we do the same thing using Java 8 stream
- Dilip Kumar Pandey
Hi Pankaj, Can we use Stream API for filtering object collections based on the object properties ?
- viral
what will be the code change of thi FOR in java8: int noOfBeers = 0; for(Item item: purchasedItems){ if( item.category == “beer”){ noOfBeers += item.noOfUnits; } } System.out.println("Number of beers bought : " + noOfBeers);
- priya
Strangely, I ran the sum example both the conventional way and with Java Stream API. I set the number of elements much higher. The conventional way seems to take lesser time than both serial and parallel streams. So the advantages are not clear to me. Please clarify
- Test
I am just confused about the answer to question number 41, it should be Tree Map or LinkedHashMap for having the insertion order .
- Saurabh Jain
is streams and streams api are same??? what will come under streams api?
- swathi
Hi…I am new to Java 8 features and this may be a stupid question but I am stuck at this point. I am trying to run following code but it gives compile time error. import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.function.Predicate; import java.util.stream.Stream; import ch.lambdaj.Lambda; public class LambdajTest { public static void main(String[] args) { List list = new ArrayList(); list.add(1); list.add(3); list.add(8); list.add(10); list.add(16); int sum = list.stream().filter(i -> i > 10).mapToInt(i -> i).sum(); } } Error is :- i cannot be resolved to a variable. Kindly provide solution. Thanks in advance.
- suraj