Search:

Type: Posts; User: whattheeff

Search: Search took 0.32 seconds.

  1. Replies
    2
    Views
    1,041

    Whats wrong with this Pig Latin code?

    heres my code so far...



    import java.util.StringTokenizer;

    public class Piglatin{

    public void processLine (Strin line){
    StringTokenizer str = new StringTokenizer(line);
  2. Replies
    2
    Views
    2,539

    Help with method plz..

    Help with this code please.. im not sure how to go about this.

    This exercise depends on these two classes:

    /JavaCS1/src/inheritanceI/Person.java
    /JavaCS1/src/inheritanceI/Oldie.java

    The...
  3. Replies
    1
    Views
    458

    whats wrong?

    The code below shows some of the text for a class called City. As you can see, a City has two instance variables, name and population. Write a complete public constructor (including header line) with...
  4. Replies
    3
    Views
    2,782

    Re: Array Code Help

    why isnt it working? this is the feedback i get
    Your code did not print the correct name given this input array:
    Name: Sylvester
    Age: 0
    Name: Sasha
    Age: 8
    Name: Toby
    Age: 2
    Name: Felix...
  5. Replies
    3
    Views
    2,782

    Array Code Help

    public class Kitty {

    private String name;
    private int age;

    public Kitty(){
    }

    public void setName(String n){
    name = n;
  6. Replies
    1
    Views
    1,057

    Help please with array...

    The array nums is a 10 element array of type int that has already been declared and initialized. Write the expression(s) in the box below that prints the sum of the first and second elements of nums...
  7. Replies
    1
    Views
    1,612

    Whats Wrong with this code?

    Hey im having a bit of confusion with this particular programming assignment,
    "Programming Assignment: Opoly

    For this assignment, your job is to create a kind of lobotomized version of a board...
  8. Thread: help please

    by whattheeff
    Replies
    1
    Views
    398

    help please

    Now we want to return the age of the oldest kid rather than the name of the oldest kid, using a method called howOld. Your job is to complete the change so that the new method, howOld, properly...
  9. Thread: Wrong code

    by whattheeff
    Replies
    2
    Views
    3,229

    Re: Wrong code

    thanks man that worked.. simpler then i thought haha damn
  10. Thread: Wrong code

    by whattheeff
    Replies
    2
    Views
    3,229

    Wrong code

    The files at the links below contain source code for three interrelated classes, a Dog class, a DogOwner class, and a DogTester class that manipulates objects from the other two classes.
    ...
  11. Replies
    1
    Views
    2,344

    Whats wrong with my code?

    Suppose that you are given the following Driver class, which includes a main method:

    public class Driver
    {
    public static void main(String[] args)
    {
    double distance = 400.48;
    ...
Results 1 to 11 of 11