Question
How will you print 10 random numbers in a sorted order in java 8?

Answers

The following code segment shows how to print 10 random numbers in a sorted order.
Random random = new Random();random.ints().limit(10).sorted().forEach(System.out::println);   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q What is the difference between udate and the system date?
  • Q What is construction?
  • Q Oracle job roles and responsibilities? Oracle job duties?
  • Q What does the logo mean?
  • Q Can i get information about a resultset's associated statement and connection in a method without having or adding specific arguments for the statement and connection?
  • Q Which constitutional amendment had established Panchayati Raj institutions-
  • Q You are given a data set consisting of variables having more than 30% missing values? Let’s say, out of 50 variables, 8 variables have missing values higher than 30%. How will you deal with them?
  • Q Hertz was the first to discover?
  • Q what is surface grinding? When do you recommend the use of the machine? Explain the alternative arrangement of spindle and table of surface grinder along with their relative motion with the help of suitable sketches.
  • Q VB.NET - Visual inheritance in VB.NET
  • Q I don't have the resources to be able to recruit business partners and explain my edi strategy to them. Is there a way of achieving this efficiently?