try this :
class randm{
long i = 0;
for(int j=0 ; j<10; j++)
{
i = (Math.random()*100000+100000);
System.out.println(i+" ");
}
}
More Related Contents:
- Have to get Longest Run Coin Flip
- How to mock void methods with Mockito
- Best GUI designer for eclipse? [closed]
- Finish all previous activities
- Javax.swing timer repeats fine, but ActionListener doesn’t do anything
- Where does Java’s String constant pool live, the heap or the stack?
- Java KeyListener Not Registering Arrow Keys
- Java “user.dir” property – what exactly does it mean?
- Java: How to access methods from another class
- Regex exactly n OR m times
- Eclipse Installation on macOS
- Android: TextView automatically truncate and replace last 3 char of String
- Value Change Listener for JavaFX’s TextField
- Java parsing XML document gives “Content not allowed in prolog.” error [duplicate]
- Java 8 LocalDateTime deserialized using Gson
- What does `public static void main args` mean?
- Eclipse will not start and I haven’t changed anything
- Is Dalvik’s memory model the same as Java’s?
- How to convert JSON string into List of Java object?
- Why use returned instance after save() on Spring Data JPA Repository?
- IText reading PDF like pdftotext -layout?
- Can I send an excel file and JSON body with a description of file in same REST API Response
- Spring: overriding one application.property from command line
- Spring annotation-based DI vs xml configuration?
- Should source code be saved in UTF-8 format
- How to make a long time Full GC in Java manually
- Which JRE does C:\ProgramData\Oracle\Java\javapath\java.exe use?
- Database independence through JDBC in java
- Calling methods on reference variable vs Calling methods on a new object
- int cannot be dereferenced