All pastes›Public feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Car

    1593608·java·1.0 KB·2009-10-05 02:47 UTC
    public class Car
    {
     private String carName;
     private double economy;
     private double gas;
     private double mileage;
    
     public Car(String name, double fuelEconomy, double currentMil
  • StudentTester

    1593582·java·852 B·2009-10-05 02:34 UTC
    /**
     * A class that tests class Student.
     */
    public class StudentTester
    {
    public static void main(String[] args)
     {
     Student student = new Student("John", 7, 658);
     String nam
  • Student

    1593579·java·1.6 KB·2009-10-05 02:34 UTC
    /**
     * A class that computes a student's average
     */
    public class Student
    {
    /**
     * Construct a student with a name, amount of quizzes taken, and the total score
     * of those quizes
     * @param na
  • SavingsAccount

    1593575·java·1.4 KB·2009-10-05 02:33 UTC
    /**
     * A class that creates a savings account.
     */
    public class SavingsAccount
    {
     /**
     * Constructs a savings account with an initial balance an interest rate.
     * @param initialBalan
  • SavingsTester

    1593574·java·344 B·2009-10-05 02:32 UTC
    /**
     * Tests class SavingsAccount
     */
    public class SavingsTester
    {
    public static void main(String[] args)
    {
    SavingsAccount mySavings = new SavingsAccount(1000, 10);
    mySavings.addInterest();
    d
  • noclip

    1593545·text·504 B·2009-10-05 02:15 UTC
    0x1 makes it impossible to move diagonally from a tile to the one south-east of it
     0x2 makes it impossible to move south
     0x4 makes it impossible to move diagonally from a tile to the one south
  • LetterTester

    1593534·java·340 B·2009-10-05 02:03 UTC
    /**
     * This class tests class Letter.
     */
    public class LetterPrinter
    {
     public static void main(String[] args)
     {
     Letter letter = new Letter("Mary","John");
     letter.addLin
  • Letter

    1593518·java·736 B·2009-10-05 01:55 UTC
    public class Letter
    {
     public Letter(String from, String to)
     {
     writer = from;
     reader = to;
     }
     public void addLine(String line)
     {
     text = text + line.c
  • buyvigrx

    1593510·actionscript·86 B·2009-10-05 01:52 UTC
    Hello. Great job. I did not expect this on a Wednesday. This is a great story. Thanks!
  • kdg

    1593486·text·17.3 KB·2009-10-05 01:26 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Oct 5 01:26:38 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Bug

    1593479·java·851 B·2009-10-05 01:18 UTC
    /**
     * Creates a class Bug that moves a bug 1 unit per move.
     */
    public class Bug
    {
    /**
     * Constructs a bug with a starting point.
     * @param initialPosition The original position of the bug.
  • jarrah

    1593464·text·15.6 KB·2009-10-05 01:01 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Oct 5 01:50:17 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Coop_Dawg

    1593363·text·4.5 KB·2009-10-04 23:49 UTC
    Session Start: Tue Sep 15 19:12:15 2009
    Session Ident: coop
    [19:12:15] Session Ident: coop (irc.atomix-gaming.com, shaitan) (aaa@2C35DD26.F7F3BCD3.CBBB4BA5.IP)
    [19:12:15] <coop> u posted a reply
  • Mine

    1593273·text·393 B·2009-10-04 22:54 UTC
    sudo grub-install /dev/sda
    Searching for GRUB installation directory ... found: /boot/grub
    Installing GRUB to /dev/sda as (hd0)...
    Installation finished. No error reported.
    This is the contents o
  • cdm2

    1593155·text·23.4 KB·2009-10-04 21:38 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Sun Oct 4 21:38:01 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • cdm2

    1593128·text·23.5 KB·2009-10-04 21:23 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Sun Oct 4 21:22:25 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • cdm2

    1593126·text·23.5 KB·2009-10-04 21:22 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Sun Oct 4 21:21:47 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Bitwise Addition

    1593093·cpp·422 B·2009-10-04 21:04 UTC
    #include <iostream>
    #include <climits>
    
    const int sum_of(int a, int b){
     int sum = 0, carry = 0;
     for (int i = 0; i <sizeof(int)*CHAR_BIT-1; i++) {
     int a_i = (a >> i) & 0x1;
     int b_i = (b >>
  • clueless

    1593024·text·2.9 KB·2009-10-04 20:28 UTC
    #include <stdio.h>
    #define SIZE 10
    #include <stdlib.h>
    #include <time.h>
    
    //define some keywords for the printArray function
    #define NOSORT 0
    #define ASCSORT 1
    #define DESCSORT 2
    
    int seed()
    {
     //thi
  • eddie

    1593011·text·19.3 KB·2009-10-04 20:20 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Sun Oct 4 20:20:18 UTC 2009
    
    !!Linux Distribution
    !!------------------
    
    Ub

older pastes →