Search:

Type: Posts; User: jbarke12

Page 1 of 2 1 2

Search: Search took 1.80 seconds.

  1. Replies
    11
    Views
    185

    Re: Sorting an array alphabetically

    The code still doesn't make any sense. text has never been created. This code shouldn't even compile
  2. Re: Hello! Quick code problem with ArrayLists

    next() Finds and returns the next complete token from this scanner.

    nextLine() Advances this scanner past the current line and returns the input that was skipped.
  3. Re: Hello! Quick code problem with ArrayLists

    add the keyword new students.add(new Student(entreFirstName, enterSecondName,x));
  4. Replies
    9
    Views
    270

    Re: How to make a lsit of names with java

    So the first thing looks like you have done...made a list of requirements. So what is your question? Some things that may help you is the Scanner API and you need to decide how you want to store...
  5. Replies
    7
    Views
    154

    Re: Import package fails

    It doesn't look like from the structure in the picture that he has compiled it successfully to create those .class files.
  6. Replies
    7
    Views
    154

    Re: Import package fails

    It looks like these are two different projects and packages.
  7. Replies
    3
    Views
    120

    [SOLVED] Re: small problem with Scanner

    In the if statement use answer.equals("yes") not ==

    .equals checks the text where as == is testing to see if the is same object.
  8. Replies
    13
    Views
    538

    Re: Making a coin Star Simulator.

    Through String manipulation. Tokenize between each space.
  9. Replies
    2
    Views
    168

    Re: Having troubles with my outputs...

    it looks like you ask for yearly rate and typed in 9.... never convereted that to percentage though.... You left it as 900 percent. You then pass that to your monthly rate param...this is where you...
  10. Thread: Digit sum

    by jbarke12
    Replies
    4
    Views
    147

    Re: Digit sum

    You would use the steps above to separate each place out. Thousands place= 1000 hundreds place= 100, etc. After which you can add each place together to get a sum.

    --- Update ---

    If I were...
  11. Thread: Digit sum

    by jbarke12
    Replies
    4
    Views
    147

    Re: Digit sum

    You will break each number apart using the division and % remainder function

    --- Update ---



    int x= 5132;

    int thousand= x/1000;
    int leftOverAfterThousand= x%(1000);
  12. Replies
    13
    Views
    237

    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...
  13. Replies
    13
    Views
    237

    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...
  14. Replies
    10
    Views
    194

    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...
  15. Replies
    5
    Views
    208

    Re: Create Employee Class

    what have you tried?
  16. Re: I need serious help with this assignment!!!

    You don't know how to set up the rest of the methods?
  17. 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) {
    ...
  18. 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,...
  19. Re: I need helping for some correction in this assignmnet

    Do you have any specific questions? We don't do the assignment for you.
  20. Re: I need serious help with this assignment!!!

    Where is the code you have tried?
  21. 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
  22. 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.
  23. 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...
  24. Replies
    2
    Views
    165

    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);
    ...
  25. 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?
Results 1 to 25 of 38
Page 1 of 2 1 2