代码搜索:boolean
找到约 10,000 项符合「boolean」的源代码
代码结果 10,000
www.eeworm.com/read/332978/7141710
java atunitexternaltest.java
//: annotations/AtUnitExternalTest.java
// Creating non-embedded tests.
package annotations;
import net.mindview.atunit.*;
import net.mindview.util.*;
public class AtUnitExternalTest extends At
www.eeworm.com/read/332978/7141713
java passwordutils.java
//: annotations/PasswordUtils.java
import java.util.*;
public class PasswordUtils {
@UseCase(id = 47, description =
"Passwords must contain at least one numeric")
public boolean validateP
www.eeworm.com/read/332978/7141718
java whiletest.java
//: control/WhileTest.java
// Demonstrates the while loop.
public class WhileTest {
static boolean condition() {
boolean result = Math.random() < 0.99;
System.out.print(result + ", ")
www.eeworm.com/read/332978/7141729
java frog.java
//: frogbean/Frog.java
// A trivial JavaBean.
package frogbean;
import java.awt.*;
import java.awt.event.*;
class Spots {}
public class Frog {
private int jumps;
private Color color;
www.eeworm.com/read/332978/7141821
java allops.java
//: operators/AllOps.java
// Tests all the operators on all the primitive data types
// to show which ones are accepted by the Java compiler.
public class AllOps {
// To accept the results of
www.eeworm.com/read/332978/7142051
java intgenerator.java
//: concurrency/IntGenerator.java
public abstract class IntGenerator {
private volatile boolean canceled = false;
public abstract int next();
// Allow this to be canceled:
public void c
www.eeworm.com/read/332978/7142106
java pool.java
//: concurrency/Pool.java
// Using a Semaphore inside a Pool, to restrict
// the number of tasks that can use a resource.
import java.util.concurrent.*;
import java.util.*;
public class Pool
www.eeworm.com/read/332978/7142290
java initialvalues.java
//: initialization/InitialValues.java
// Shows default initial values.
import static net.mindview.util.Print.*;
public class InitialValues {
boolean t;
char c;
byte b;
short s;
int
www.eeworm.com/read/332978/7142294
java terminationcondition.java
//: initialization/TerminationCondition.java
// Using finalize() to detect an object that
// hasn't been properly cleaned up.
class Book {
boolean checkedOut = false;
Book(boolean checkOut)
www.eeworm.com/read/125176/7146102
java testvar.java
public class TestVar {
public static void main(String args[]) {
boolean flag = true;
byte b = 33;
char c = 'a';
float f = 123.456f;
System.out.println("flag