This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.*; | |
import java.io.*; | |
public class serve | |
{ | |
public static void main(String args[]) | |
{ | |
try | |
{ | |
ServerSocket server = new ServerSocket( 80 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class Stack: | |
stack = [] | |
size = 0 | |
def push(self, i): | |
self.stack.append(i) | |
self.size += 1 | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.io.File; | |
import javax.swing.JOptionPane; | |
import javazoom.jl.player.Player; | |
import java.io.BufferedInputStream; | |
import java.io.FileInputStream; | |
public class mp3 | |
{ | |
public static void main(String[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class test | |
{ | |
public static void main(String[] args) | |
{ | |
String input; | |
System.out.println("Hello, welcome to the forum. Input your post"); | |
Scanner k = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------- | |
-- Chris's Unix Quiz -- | |
----------------------- | |
0) Install the GNU wget utility with homebrew. The | |
homebrew executable is called 'brew' and it's in your | |
path. | |
1) The source code for Python 3.2 is located at: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class CS1_Frazer_X8_1 | |
{ | |
public static void main(String[] args) | |
{ | |
String Input; | |
Scanner keyboard = new Scanner(System.in); | |
while(1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Write a program to read a list of nonnegative integers | |
* and to display the largest integer, the smallest integer, | |
* and the average of all integers. | |
* The user indicates the end of the input by | |
* entering a negative sentinel value that is not used in | |
* finding the largest, smallest, and average values. | |
* The average value should be a value type double, | |
* so it can be computed with it's fractional part. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CS1_Frazer_X11_1 | |
{ | |
public static void main(String[] args) | |
{ | |
int x; //the number the user enters for how large the triangle will be. | |
int y; // the number that determines how many astericks in that row. | |
System.out.println("Hello, please enter a number from one to fifty."); | |
Scanner k = new Scanner(System.in); | |
x = k.nextInt(); | |
int asteriskCount = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Derp | |
{ | |
private int herp(int x, int y) | |
{ | |
int q; | |
q = x+y; | |
return q; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Derp | |
{ | |
public Derp() | |
{ | |
System.out.println("I get called when you do 'new Derp()'"); | |
} | |
private int herp(int x, int y) |
OlderNewer