Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and run-time environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.
9
votes
2
answers
2k
views
Implementation of Kamasutra cipher
This is exercise 3.1.31. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a filter KamasutraCipher that takes two strings as command-line
argument (the key str …
3
votes
1
answer
2k
views
Implementation of Scytale cipher (encryption and decryption)
This is web exercise 3.1.41. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
The scytale cipher is one of the first cryptographic devices used for
military purposes …
6
votes
2
answers
1k
views
Implementing a word-chain checker
This is web exercise 3.1.45. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a program that reads in a list of words from the command line
and prints true if …
4
votes
2
answers
1k
views
Calculating the Shannon entropy of a string (e.g. E. coli genome)
This is exercise 3.1.34. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
The Shannon entropy measures the information content of an input
string and plays a corners …
3
votes
1
answer
174
views
Implementation of glass filter for images
This is exercise 3.1.39. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a program that takes the name of an image file as a command-line
argument and applies …
5
votes
2
answers
680
views
Electric potential visualization
This is exercise 3.2.23. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a program that creates an array of charged particles
from values given on standard in …
6
votes
3
answers
868
views
Data-type implementation for rational numbers
This is exercise 3.2.7. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Implement a data type for rational numbers that supports addition, subtraction, multiplicatio …
4
votes
1
answer
112
views
Printing Gray code through modifying Samuel Beckett's stage instructions
This is exercise 2.3.24. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Modify Beckett to print the Gray code.
Beckett refers to the following program within the te …
2
votes
2
answers
242
views
Write a recursive function that takes a positive integer n and plots an N-by-N Hadamard patt...
This is web exercise 2.3.20. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a recursive program that takes a command-line argument n and
plots an N-by-N Had …
6
votes
1
answer
786
views
Simulation of Conway's Game of Life with periodic boundary conditions
This is exercise 2.4.20. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Implement a class that simulates Conway’s Game of Life.
One thing to note: I did not want my …
6
votes
2
answers
346
views
Implementation of oil-painting filter for images
This is web exercise 3.1.14. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Set pixel (i, j) to the color of the most frequent value among pixels
with Manhattan di …
8
votes
1
answer
358
views
Data-type implementation for axis-aligned rectangles
This is exercise 3.2.1. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Consider the following data-type implementation for axis-aligned
rectangles, which represent …
1
vote
1
answer
85
views
Simplifying data-type implementation for axis-aligned rectangles using data-type implementat...
This is exercise 3.2.8. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a data type Interval that implements the following API:
An interval is defined to be …
11
votes
3
answers
2k
views
Chaos with Newton’s method
The following is the program 3.2.6. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
// This data type is the basis for writing Java programs that manipulate complex numbers …
4
votes
2
answers
90
views
Data-type implementation for vectors and drawing a vector field as a test client
The following is the web exercise 3.2.12. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne:
Write a program that draws a vector field. A vector field associates a vec …