Searched defs:nextInt (Results 1 - 7 of 7) sorted by relevance
/openjdk7/jdk/test/java/security/Signature/ |
H A D | TestInitSignWithMyOwnRandom.java | 58 public int nextInt() { method in class:TestRandomSource
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Random.java | 203 * for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4); 214 for (int rnd = nextInt(), 223 * contract of {@code nextInt} is that one {@code int} value is 228 * <p>The method {@code nextInt} is implemented by class {@code Random} 231 * public int nextInt() { 238 public int nextInt() { method in class:Random 246 * {@code nextInt} is that one {@code int} value in the specified range 249 * probability. The method {@code nextInt(int n)} is implemented by 252 * public int nextInt(int n) { 298 public int nextInt(in method in class:Random [all...] |
H A D | Scanner.java | 54 * int i = sc.nextInt(); 70 * System.out.println(s.nextInt()); 71 * System.out.println(s.nextInt()); 103 * primitive-type companion methods (such as {@link #nextInt} and 1325 * exception. For instance, after an invocation of the {@link #nextInt} 2043 * {@link #nextInt} method. The scanner does not advance past any input. 2056 * {@link #nextInt} method. The scanner does not advance past any input. 2107 * <tt>nextInt()</tt> behaves in exactly the same way as the 2108 * invocation <tt>nextInt(radix)</tt>, where <code>radix</code> 2118 public int nextInt() { method in class:Scanner 2148 public int nextInt(int radix) { method in class:Scanner [all...] |
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | ThreadLocalRandom.java | 143 public int nextInt(int least, int bound) { method in class:ThreadLocalRandom 146 return nextInt(bound - least) + least; 161 // Divide n by two until small enough for nextInt. On each 175 return offset + nextInt((int) n);
|
/openjdk7/jdk/test/java/util/Arrays/ |
H A D | ArrayObjectMethods.java | 203 switch(rnd.nextInt(10)) { 208 return (long) (rnd.nextInt(20) - 10); 213 public static int nextInt() { method in class:Rnd 214 switch(rnd.nextInt(10)) { 219 return rnd.nextInt(20) - 10; 220 default: return rnd.nextInt(); 225 switch(rnd.nextInt(10)) { 230 return (short) (rnd.nextInt(20) - 10); 231 default: return (short) rnd.nextInt(); 236 switch(rnd.nextInt(1 [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthParser.java | 373 private int nextInt(StringTokenizer tok, String errorMsg) throws method in class:SynthParser 391 return new Insets(nextInt(tokenizer, errorMsg), 392 nextInt(tokenizer, errorMsg), 393 nextInt(tokenizer, errorMsg), 394 nextInt(tokenizer, errorMsg)); 758 nextInt(tok, "Invalid dimension"), 759 nextInt(tok, "Invalid dimension"));
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/jvm/ |
H A D | ClassReader.java | 349 int nextInt() { method in class:ClassReader 1272 int attrLen = nextInt(); 1298 final int code_length = nextInt(); 1865 int attrLen = nextInt(); 1984 int magic = nextInt();
|
Completed in 73 milliseconds