Search:

Type: Posts; User: Gerardgrundy

Search: Search took 0.35 seconds.

  1. Exception in thread "main" java.lang.ClassCastException: SuperClass cannot be cast to Subclass

    I'm trying to print out the details from the subclass auctionsale but I'm getting:
    Exception in thread "main" java.lang.ClassCastException: SuperClass cannot be cast to Subclass the subclass extends...
  2. [SOLVED] Re: Define an array of refernces from a class

    I've managed to figure this out but I can't post the code because its for an assignment.
    Thanks for your help.
  3. Replies
    7
    Views
    879

    [SOLVED] I'm in that tapatalk app can you do that in it I...

    I'm in that tapatalk app can you do that in it I can't seem to find it.
  4. [SOLVED] It's just that this is for an assignment and I...

    It's just that this is for an assignment and I can't really show the code. I wonder if making a variation of the code would be ok?
  5. Replies
    7
    Views
    879

    [SOLVED] I've had to delete a hidden file so that I can...

    I've had to delete a hidden file so that I can get the functionality back on command c. Yay got it working again. It'll be the last time I do that.
  6. [SOLVED] The variables I have declare but they are in...

    The variables I have declare but they are in another class.
    They are private and then I've used getters and setters to access them then I created a method that gets a result from the variables. But...
  7. Replies
    7
    Views
    879

    [SOLVED] Yes I've tried that. Regards Gerard

    Yes I've tried that.
    Regards Gerard
  8. [SOLVED] Define an array of refernces from a class

    Hi,
    I'm not sure at all how to start this class of?
    I've been told I need to declare and instantiate the array as a static member at the class level.
    I have no idea what this means?

    Also I...
  9. Replies
    7
    Views
    879

    [SOLVED] quick keys

    Hi,
    I have made a short cut key in eclipse to open a new java class with command + C though this is also the quick key for copy.
    I have tried restoring the quick keys back to default .
    I have...
  10. Replies
    3
    Views
    322

    [SOLVED] Re: Boolean return print

    The method has to return true false.
    Then that is to be checked and if true print Yes if false no.
  11. Replies
    3
    Views
    322

    [SOLVED] Boolean return print

    Hi,
    I'm trying to do a boolean method


    public boolean x()
    {
    if (y() >= z)
    {
    return true;
    }
  12. Thread: Structure

    by Gerardgrundy
    Replies
    8
    Views
    589

    Re: Structure

    public class a
    {
    private String b;
    private String c
    // this is what I indented is this better?
    public a(String b, String c)
    // do i need these curly braces below. why do i need...
  13. Thread: Structure

    by Gerardgrundy
    Replies
    8
    Views
    589

    Re: Structure

    public class a
    {
    private String b;
    // this is what I indented is this better?
    public a(String b)
    {
    }

    public String getb()
    {
  14. Thread: Structure

    by Gerardgrundy
    Replies
    8
    Views
    589

    Thanks for your quick reply. I gave the alt-s f a...

    Thanks for your quick reply. I gave the alt-s f a go and nothing happens. I've got some custom formatting set up with this quick key. Should the constructor be indented 4 spaces with the rest of the...
  15. Thread: Structure

    by Gerardgrundy
    Replies
    8
    Views
    589

    Structure

    Hi I'm doing some code and the use of the Curley braces is confusing me.

    public class a
    {
    private String b;

    public a(String b)
    {
    }
Results 1 to 15 of 15