Method max(int a, int b)
Return type: int
Member of: java.lang.Math
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 this.borderGap = Math.max(0, borderGap);
2 return capacity_mjips / Math.max(1,(total/number_of_cpus));
3 this(Math.max((int) (c.size()*1.1) + 1, 16));
4 currentIndex =Math.max(currentIndex - 1, 0);
5 this(Math.max(3 * map.size(), 11), 0.75F);
6 this.defaultWidth = Math.max(width, 64);
7 int delta = Math.max(0, offset - 1);
8 _historyIndex = Math.max(0, _historyIndex - 1);
9 return new Dimension(Math.max (425, pref.width), Math.max (250, pref.height));
10 this.rowGap = Math.max(0, rowGap);
11 int len = Math.max(s.length() - 1, 0);
12 this(Math.max(2*t.size(), 11), 0.75f);
13 xorigin = Math.max(xorigin, 0);
14 this(Math.max(2 * t.size(), 11), 0.75f);
15 int offset = Math.max(0,Math.min(getLineLength(line) - 1,
16 thread.setPriority(Math.max(thread.getPriority()-2, Thread.MIN_PRIORITY));
17 d.height= Math.max(table.getRowHeight(), d.height);
18 byte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];
19 int xx = Math.max(x, r.x);
20 int newSize = Math.max(bits.length << 1, numWordsToHold(bit));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.