About 234 results
Open links in new tab
  1. Standard Libraries - Princeton University

    Jun 28, 2020 · StdIn.java and StdOut.java are libraries for reading in numbers and text from standard input and printing out numbers and text to standard output. Our versions have a simpler interface than the corresponding Java ones (and provide a few tecnical improvements).

  2. 8.1 System Libraries - Princeton University

    Oct 24, 2006 · Java includes a vast number of libraries that have been designed and implemented by experts. Even more general-purpose libraries are available from the Web for download. Many of the data structures and algorithms we have considered already (binary heaps, binary search trees, hash tables, quicksort) play a central role in these libraries.

  3. In.java - Princeton University

    Jul 22, 2024 · Below is the syntax highlighted version of In.java from § Standard Libraries. Here is the Javadoc.

  4. Java Programming Cheatsheet - Princeton University

    Mar 18, 2025 · The full java.lang.Math API. Java library calls. Type conversion. Anatomy of an if statement. If and if-else statements. Nested if-else statement. Anatomy of a while loop. Anatomy of a for loop. Loops. Break statement. Do-while loop. …

  5. FFT.java - Princeton University

    May 9, 2022 · Below is the syntax highlighted version of FFT.java from §9.7 Optimization. /****************************************************************************** * Compilation: javac FFT.java * Execution: java FFT n * Dependencies: Complex.java * * Compute the FFT and inverse FFT of a length n complex sequence * using the radix 2 Cooley-Tukey algorithm.

  6. StdIn.java - Princeton University

    Jan 18, 2024 · Below is the syntax highlighted version of StdIn.java from § Standard Libraries. Here is the Javadoc.

  7. Class StdIn - Princeton University

    To use this class, you must have StdIn.class in your Java classpath. If you used our autoinstaller, you should be all set. Otherwise, either download stdlib.jar and add to your Java classpath or download StdIn.java and put a copy in your working directory. Reading tokens from standard input and converting to numbers and strings.

  8. 2.2 Libraries and Clients - Princeton University

    Write a library of static method Hyperbolic.java that implements the hyperbolic functions based on the definitions \(\sinh(x) = (e^x - e^{-x}) / 2\) and \(\cosh(x) = (e^x + e^{-x}) / 2\), with \(\tanh(x)\), \(\coth(x)\), \(\text{sech}(x)\), and \(\text{csch}(x)\) defined in a manner analogous to standard trigonometric functions.

  9. Class StdDraw - Princeton University

    To use this class, you must have StdDraw.class in your Java classpath. If you used our autoinstaller, you should be all set. Otherwise, either download stdlib.jar and add to your Java classpath or download StdDraw.java and put a copy in your working directory. Now, cut-and-paste the following short program into your editor:

  10. Draw.java - Princeton University

    Below is the syntax highlighted version of Draw.java from § Standard Libraries. Here is the Javadoc . /****************************************************************************** * Compilation: javac Draw.java * Execution: java Draw * Dependencies: none * * Drawing library.

Refresh