Search:

Type: Posts; User: jbarke12

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,139

    Re: noob having problem with return...

    YouTube videos have their place, but its important to understand the basics that you would pick up from a good computer science book. Especially just starting out. The text books are normally laid...
  2. Replies
    13
    Views
    1,139

    Re: noob having problem with return...

    also another thing to add... you don't have return type on the method signature.

    public static int getInt() { // is what that line should be.

    You should then be able to put either of the...
  3. Replies
    10
    Views
    1,246

    Re: Urgent question

    We don't do the work for you. Please show us what you have tried and let us know what problem you are having at a given point. We are more then happy to help you understand and progress your...
  4. Replies
    5
    Views
    1,253

    Re: Create Employee Class

    what have you tried?
  5. Replies
    6
    Views
    1,072

    Re: I need serious help with this assignment!!!

    You don't know how to set up the rest of the methods?
  6. Replies
    6
    Views
    1,072

    Re: I need serious help with this assignment!!!

    First things first, if I were you I would start by setting up all of methods. Read each instruction carefully and get the signatures right.



    public static void main(String[] args) {
    ...
  7. Re: I need helping for some correction in this assignmnet

    In all honesty because most of us have done these assignments and have learned what we need to from them. This is suppose to be training you for a future job. We will help when there are issues,...
  8. Re: I need helping for some correction in this assignmnet

    Do you have any specific questions? We don't do the assignment for you.
  9. Replies
    6
    Views
    1,072

    Re: I need serious help with this assignment!!!

    Where is the code you have tried?
  10. Re: I was just about to start and it has problems?

    Try something like



    String s= input.next();
    System.out.println(s);


    after your hello world print statement
  11. Re: I was just about to start and it has problems?

    Scanner is just an object. You haven't called any of its methods to have it do anything.
  12. Re: Couple questions on my code for a setters and getters

    System.out.printf("Population Density: %s", NumberFormat.getNumberInstance(Locale.US).format(populationDensity(density)));
    //this should convert your integer to a String representation of that...
  13. Replies
    2
    Views
    1,078

    Re: Enumerations help

    public class Demo {

    public enum Month {

    JANUARY(1), FEBRUARY(2), MARCH(3), APRIL(4), MAY(5), JUNE(6), JULY(7), AUGUST(8), SEPTEMBER(9), OCTOBER(10), NOVEMBER(11), DECEMBER(12);
    ...
  14. Re: Which Java programming book should a beginner choose ?

    Making android apps are fun, but do you know basics of programming or is this your first experience with programming?
  15. Replies
    6
    Views
    910

    Re: Need help with looping

    item is a String. You are comparing an int to a String in item!=999. Your issue would be because of this fact.

    --- Update ---

    The other issue you are having is outFile doesn't exist. My...
  16. Replies
    6
    Views
    1,169

    Re: Random Number Arrays

    I bet if you defined two different arrays to pass into your scenes you wouldn't have this problem
  17. Replies
    4
    Views
    1,187

    Re: Several questions about my code

    class Account{
    double balance;
    String name;
    Bank bank;

    Account(){ //default constructor
    this("", 0.0, null);
    // bank = new Bank(); //Is this necessary?
    }
    //fully specified...
  18. Thread: What gives?

    by jbarke12
    Replies
    5
    Views
    1,094

    Re: What gives?

    It works with package stringvars; if that is the true name of your package. My only thought is the name of your package was incorrect otherwise it should have run just fine
  19. Replies
    4
    Views
    907

    Re: Need some help.

    I would. Basically start with your if statement with the square root. Within that block define what happens if a is above 0 and if a is 0 then do the same thing in the else part of your block for...
  20. Replies
    4
    Views
    1,187

    Re: Several questions about my code

    I answered the questions in the code


    import java.util.Scanner;
    import java.util.ArrayList;

    class Bank{
    double balance;
    //Account account;
    ArrayList<Account>account = new...
  21. Replies
    4
    Views
    907

    Re: Need some help.

    The reason it is printing twice is because you do your check on the square and then on a instead of doing them together.
Results 1 to 21 of 21