Search:

Type: Posts; User: mickey2012

Search: Search took 0.17 seconds.

  1. Replies
    1
    Views
    871

    problem with enum (int to months)

    My assignment is to ask the user to enter a number 1-12 and you will print out the the name of the month. You MUST use enumerated types to associate the number entered to the name of the month.
    ...
  2. Replies
    1
    Views
    484

    help creating a virtual Object

    I'm stuck on how to get started on this part of my assignment. These are my instructions.
    The next class that you need to create will be what I call a Virtual Object. It is an object that we are...
  3. [SOLVED] Re: I'm trying to combine 2 files into 1. Please help

    Ok, I added another "while" for the 2nd file. I found in my main a piece of code that should not have been there that was erasing my answers file. Otherwise, there would've been the same number of ...
  4. [SOLVED] I'm trying to combine 2 files into 1. Please help

    I need to take 2 different files and combine them into 1 file. This is what I have so far, but I'm doing something wrong. The error I get is java.util.NoSuchElementException: No line found (in...
  5. Replies
    2
    Views
    497

    Re: A deck of cards

    maybe try creating a second array for the suits. Then create your deck by combining the 2 arrays.

    String[] suit = { "Clubs", "Diamonds", "Hearts", "Spades" };
    String[] mydeck = new...
  6. [SOLVED] Re: Help reading a file to decode or encode

    That worked! thanks!
  7. [SOLVED] Help reading a file to decode or encode

    Hello I've ran into hopefully a small problem. A few weeks ago we were given an assignment to decode or encode a phrase given by a user. This week we have to change our code so it users a file and...
  8. [SOLVED] Re: help pulling information from different classes when you have more than one

    I figured it out! :) Thank you for your help!!!


    public double convertKilogramsToPounds(double weightInKilograms){

    return (weightInKilograms*2.20462262);

    }
  9. [SOLVED] Re: help pulling information from different classes when you have more than one

    That gives me an error in public class Lab2. convertKilogramsToPounds() in PlanetWeights cannot be applied to (double)
    I cannot change the code in Lab2. This is my updated code for PlanetWeights.
    ...
  10. [SOLVED] help pulling information from different classes when you have more than one

    I'm having trouble with a homework assignment. This is what I need to do.

    You are to create 2 classes and use the helper class I have provided to complete this lab.

    The first class you are to...
Results 1 to 10 of 10