Search:

Type: Posts; User: elim

Search: Search took 0.26 seconds.

  1. Re: How to find the needed info from Java API documentation

    I found the solution:

    1) Find class System and the method/field out from api documentation
    2) It turns out that out is a static field of System with type PrintStream
    3) Find class PrintStream...
  2. How to find the needed info from Java API documentation

    Let's say I'd like to print out something as a prompt without end with a new line char, so the standard System.out.println() is not an option and I'd like to find something else inplace of...
  3. Replies
    5
    Views
    272

    Re: static method in super class

    Because I don't assume an object of type B (C, D,...) exists. I think any method creating objects is static...

    The reason I'd like to do things that way is that if I put newInstance method in each...
  4. Replies
    5
    Views
    272

    Re: static method in super class

    No. I don't know how. I used to program with ObjectC (cocoa), it's not hard doing such thing with
    ObjectC. And I'd like to port code to Java

    I heard that I need reflection functionalities in Java...
  5. Replies
    5
    Views
    272

    static method in super class

    Suppose class A has many subclasses B, C, D,... (the names can be very irregular).
    Is there a way to implement a mathod

    public static newInstance(String xml)

    in class A such that when I say...
Results 1 to 5 of 5