Search:

Type: Posts; User: GStateSwish

Search: Search took 0.37 seconds.

  1. Re: Need help doing an exercise[constructors]

    System.out.print()
    vs
    System.out.println()



    public class Insurance
    {
    public String name;
    public int age;
  2. Re: Need help doing an exercise[constructors]

    The main problem is the variables assigning to themselves.. forgot to mention that the first time.

    fix the variable assignments.

    in your second constructor you are also doing something weird
    ...
  3. Re: Need help doing an exercise[constructors]

    First, inside of your constructors, declare your variables appropriately
    i.e


    public Insurance (String name .. etc){
    this.name = name;
    }

    the way the class will determine which name to use....
  4. Re: Need help doing an exercise[constructors]

    the problem is where your system.out.println statement lies in your first code.

    the question instructs for there to be a method of void type called print. You should replace that print statement...
  5. Replies
    1
    Views
    260

    Re: Well Ordered Sort function

    import java.util.Arrays;
    import java.util.Scanner;
    public class wellOrderSorter {
    private int startCount;
    private int maxCount;


    wellOrderSorter(int number)
    {
    ...
  6. Replies
    1
    Views
    260

    Well Ordered Sort function

    need to create a code that sorts for "well ordered numbers", ie (1<2<3 , 4<7<9.)

    Initially had trouble through the use of a string char evaluation being sufficient, changed it to OOP to complete...
  7. Replies
    4
    Views
    376

    Re: help cleaning up code

    1. fair enough on the addition of comments.

    2. copy-paste issue.

    3. I'm about a month or so into seriously learning java. I know what ood is but have no idea of how to write in ood just yet.
    ...
  8. Replies
    4
    Views
    376

    Re: help cleaning up code

    i guess its clean enough..
  9. Replies
    4
    Views
    376

    help cleaning up code

    whats going on everyone?

    Can anyone provide tips or suggestions for cleaning up this code?
    the code functions properly, i'm just seeking tips to improve its readability or general tips.



    /*...
  10. Variable not initialized error in IF statements. probable simple fix.

    I am receiving an error variable might not have been initialized near the end of my program.

    The program itself is a bill calculation example in which the bill is calculated on which type of...
  11. Replies
    3
    Views
    258

    Re: Can you spot the error in my switch?

    Thank you for your response. I was able to fix the program with your suggestions.

    originally line 32 was the declaration:
    accountType = (char) inFile.nextByte();

    I do also realize my coding is...
  12. Replies
    3
    Views
    258

    Can you spot the error in my switch?

    I attempted to post this in switch however was unable

    Hello,

    I am currently learning java programming and have attempted to construct a program that reads a customer's account number (int...
  13. Replies
    2
    Views
    184

    Hello everyone

    Hello everyone. I am a computer science undergraduate student seeking to help learn, and eventually help advise on java programming coding.

    I live in the Atlanta area.
Results 1 to 13 of 13