My implementation of an iterator class

I implement my own iterator class, which provides a few methods for the user to get data, and once the end of the iterator is reached, I can release the memory. How does it look?
import java.util.LinkedList;
public class MyIterator {
    private Object[] list;
    private int size;
    private int cursor;
    public MyIterator(LinkedList inList) {
        size = inList.size();
        list = Object[size];
        for(int i=0;i<size;i++){
            list[i] = (Object) inList.removeFirst();
        cursor = 0;
//check how many more items are available
    public int max_left() {
        return size - cursor;
//get the next n
    public Object[] next_n(int how_many) {
        if( cursor == size ){
            return null;
        Object[] newList = Object[how_many];
        int temp = cursor;
        for(int i=0;i<how_many;i++){
            if( cursor < size ){
                newList[i] = list[cursor++];
        checkCursor();
        return newList;
//get the next one
    public boolean next_one() {
        if( cursor < size ){
            next.value = list[cursor++];
            checkCursor();
            return true;
        return false;
    //  if the cursor has already reached the end of the list, release the list memory
    public void checkCursor(){
        if( cursor == size ){
            list = null;
}

Hi,
It looks very strange. I didn't look at the whole code, but why do you want an iterator that removes all elements from the original list when you create the iterator?
list[i] = (Object) inList.removeFirst();/Kaj

Similar Messages

  • Iterator class

    hi
    I have created a program which uses a table view and iteratorclass to diaplay a table .but  my program is not able to identify the iterator class ,i have created an iterator instance in my model class attributes ...am not getting any error but its just displaying the table ...here is the code........if its not correct please help me out with the write code..
    <htmlb:tableView id            = "tc"
                     design              = "ALTERNATING"
                     headerText          = "Header Text"
                     onNavigate          = "onMyNavigate"
                     selectionMode       = "SINGLESELECT"
                     onRowSelection      = "onMyRowSelection"
                     table               = "<%=model->ITAB1%>"
                     iterator            = "<%=model->my_iterator%>"
                     visibleRowCount     = "15"   />
    interface implementation.......
    if_htmlb_tableview_iterator~get_column_definitions..............
    field-symbols: <def> like line of p_column_definitions.
    append initial line to p_column_definitions assigning <def>.
      <def>-columnname = 'ebeln'.
      <def>-title      = 'PO_NUMBER'.
      append initial line to p_column_definitions assigning <def>.
      <def>-columnname = 'EBELP'.
      <def>-title      = 'PO_LINE_ITEM_NUMBER'.
      append initial line to p_column_definitions assigning <def>.
      <def>-columnname = 'matnr'.
      <def>-title      = 'material_number'.
      append initial line to p_column_definitions assigning <def>.
      <def>-columnname = 'menge'.
      <def>-title      ='quantity'.
      <def>-edit = 'X'.
      append initial line to p_column_definitions assigning <def>.
      <def>-columnname = 'gewei'.
      <def>-title      ='Unit Of Measurement'
      <def>-edit = 'X'.
    method if_htmlb_tableview_iterator~render_row_start .
      m_row_ref ?= p_row_data_ref.
    endmethod.
    method if_htmlb_tableview_iterator~render_cell_start .
      data :itab type zmy_tt.
      field-symbols: <q> type itab ,
      <v2> type i .
      data: var2 type string .
      assign p_row_data_ref->* to <q>.
      case p_column_key.
        when 'quantity'.
          assign component p_column_key of structure <q> to <v2>.
          if <v2> is assigned .
            var2 = <v2> .
          endif .
          if var2  gt 100.
            p_replacement_bee = cl_htmlb_inputfield=>factory(
                                     id        = p_cell_id
                                     disabled = 'true' ).
          endif.
      endcase.
    endmethod.
    Thanks ,
    Raju

    my_iterator instancevariable  public type ref to zcl_it_details.
    do u mean the itab1 thats passed to table view ?
    it has values ,i have checked it in debugging mode.
    in this method
    if_htmlb_tableview_iterator~render_row_start
    how the m_row_ref must be declared ? is it the structure type of itab1?
    Message was edited by:
            raju msm

  • No-arg constructor for SQJL iterator class

    I'm to use SQLJ with EJB:
    I used SQLJ to define a public DeptRecs:
    #sql public iterator DeptRecs implements java.io.Serializable
    ( int deptNo, String dName, String loc );
    I wish to pass the iterator out of EJB:
    DeptRecs departments = deptEJB.getDepartments();
    As EJB communication is based on object serialization /
    deserialization, it is critical to provide a no-arg constructor
    for all the classes passed. But the SQLJ iterator has only one
    constructor:
    public DeptRecs(sqlj.runtime.profile.RTResultSet resultSet)
    How can I have a no-arg constructor for the iterator class?
    Or if this is a wrong way to have SQLJ work with EJB, could
    anybody tip me the correct structure?

    You may want to look at the following SQLJ demo file:
    sqlj/demo/SubclassIterDemo.sqlj
    This demonstrates the following:
    - a class Emp to hold the values of the rows
    - a subclass EmpColl of the iterator to read the rows into Emp
    objects.
    The EmpColl class has a getEmpVector() method that returns a Java
    vector with Emp objects as elements. Such a vector would be
    serializable and can be passed around. However, you are likely
    not able to pass the original iterator or its EmpColl subclass
    around.

  • CRM 7.0 implement method from MVC class

    Hello, folks.  I will prefix my question with the fact that I am a relative dinosaur in the development arena, still focused primarily procedural coding practices.  Although this still serves me well, it also means that I know little about OO development.  I have had some training and can make use of such common tools as OO ALV.  However, I know next to nothing about MVC (model view controller) programming, WEB Dynpro for ABAP, etc.  I am currently assigned to a CRM project (I am also new to CRM) and have a particular requirement that I cannot seem to address with any sort of procedural-based solution (i.e. function module).
    My requirement is to create a "URL Attachment" to a service request in CRM.  To elaborate, I have created an inbound point-to-point interface (i.e. not PI/XI) from an external system using Web Services.  The Web Service I have created ultimately invokes a call to function CRMXIF_ORDER_SAVE via a wrapper function I developed with the same interface.  This function, however, does not support the creation of "URL Attachments", only "Attachment Links".  So, my approach then is to implement additional functionality in my wrapper function to create this URL Attachment via some other means.  If you have any questions regarding URL Attachments vs. Attachment Links, please let me know.
    I have scoured the function modules to no avail.  What I have found is that via MVC, the functionality on the CRM Web UI is associated with the following class: CL_GS_CM_ADDURL_IMPL.  A search in SE24 reveals that there are actually several related? classes:
    CL_GS_CM_ADDURL
    CL_GS_CM_ADDURL_CN02
    CL_GS_CM_ADDURL_CN03
    CL_GS_CM_ADDURL_CTXT
    CL_GS_CM_ADDURL_IMPL
    My question is whether I can somehow implement one of these classes to address my requirement.  Looking at the logic within the IP_TO_ADDURL method, I cannot figure out whether I can somehow leverage this and, if so, exactly what coding would be required in my wrapper function.  I should also point that, at least from a Web UI point of view, this is a two step process whereby you must first create the attachment and the actually save it. 
    Any and all insights are much appreciated.
    Thanks.

    Hi there,
    I am not familiar with the CRM classes you mention - but what you describe is pretty much standard functionality included in Generic Object Services. May that path will lead you home.
    Cheers
    Graham Robbo

  • Is Iterator class really necessary for our lifes?

    I'm reading about Iterator class and how to use it, but a doubt arrise. Is it really necessary?
    Take a look at my code bellow:
    import java.util.*;
    public class Main {
        public static void main(String[] args) {
            ArrayList ar = new ArrayList();
            for (int i=0;i<20;i++)
                ar.add(i);
            //Method 1
             for(int i=0;i<ar.size();i++)
                if (((Integer)ar.get(i) % 2) != 0)
                    ar.remove(i);
            //Method 2
            Iterator it = ar.iterator();
            while(it.hasNext())
                if (((Integer)it.next() % 2) != 0)
                    it.remove();
            System.out.println("The even numbers are: ");
            for(int i=0;i<ar.size();i++)
                System.out.println((Integer)ar.get(i));
    }In the code above, we have two ways to do the same thing, both works fine, but using the Method 2 I needed to code one line more instancing a new class Iterator.
    Can anyone tell me in which circuntances I really need to use a Iterator and why?
    Thanks

    Additionally, Iterator works on all Collections. For Sets, there is no get(i). If you have a method that returns a Collection, and that Collection might be a LinkedList or an ArrayList or a HashSet or something else, the Iterator is the gauranteed way to walk through it, regardless of what class it is. And with enhanced for loop, it's quite clean and simple.
    Collection<Thing> things = thingFetcher.fetchACollectionOfThings(); // LinkedList? HashSet? We don't know and don't care
    for (Thing thing : things) {
      thing.doStuff();
    }

  • How do I best implement a comparable parameterized class?

    I am trying to implement a parameterized Wrapper class that I want to make Comparable, and the ordering is supposed to
    be consistent with equals(). How can this be done? I'm kind of lost ...
    My first approach looked like this:
    class Wrapper<T> implements Comparable<Wrapper<T>> {
      private T theObject;
      public Wrapper(T arg) { theObject = arg; }
      public boolean equals(Object other) {
        if (this == other) return true;
        if (other == null) return false;
        if (getClass() != other.getClass()) return false;
        ... comparison of theObject based on T.equals() ...
      public int hashCode() { ... }
      public int compareTo(Wrapper<T> other) {
        if (this == other) return 0;
        if (other == null) throw new NullPointerException();
        ... comparison of theObject based on T.compareTo() ...
    }This does not work, because I cannot invoke T.compareTo(), since T's bound it Object. Okay, it makes sense to perform
    comparison only against wrappers around something that is comparable to T. Next try:
    class Wrapper<T> implements Comparable<Wrapper<? extends Comparable<T>>> {
      public int compareTo(Wrapper<? extends Comparable<T>> other) {
        if (this == other) return 0;
        if (other == null) throw new NullPointerException();
        ... comparison of theObject based on T.compareTo() ...
    }Now it compiles and I can compare a Wrapper<Integer> to a Wrapper<Integer>. But I cannot compare a Wrapper<Number> to
    a Wrapper<Integer>, although the Wrapper<Number> may well contain a reference to an Integer object that is
    comparable to the Integer in the other wrapper and the comparison is meaningful in such a case. Simply for reasons
    of consistency with equals() I want to compare Wrapper<Integer> and Wrapper<Number>, but with the implementation above
    I can't:
              Wrapper<Integer> p0 = new Wrapper<Integer>(10000);
              Wrapper<Number> p2 = new  Wrapper<Number>(10000);
              boolean equ = false;
              equ = p0.equals(p2);
              equ = p2.equals(p0);     
              int less = 0;
              less = p0.compareTo(p2);
              less = p2.compareTo(p0);The error messages say:
    compareTo(Wrapper<? extends Comparable<Integer>>) in Wrapper<Integer> cannot be applied to (Wrapper<Number>)
              result = p0.compareTo(p2);
                               ^
    compareTo(Wrapper<? extends Comparable<Number>>) in Wrapper<Number> cannot be applied to (Wrapper<Integer>)
              result = p2.compareTo(p0);
                               ^Okay, a Wrapper<Number> is not comparable to a Wrapper<Integer>. Obviously, the wildcard "? extends Comparable<T>" is
    too restrictive. So I tried "? extends Comparable<?>", but then I cannot invoke T.compareTo(). Hence I use the raw
    type Comparable:
    class Wrapper<T> implements Comparable<Wrapper<? extends Comparable>> {
      public int compareTo(Wrapper<? extends Comparable> other) {
        if (this == other) return 0;
        if (other == null) throw new NullPointerException();
        ... comparison of theObject based on T.compareTo() ...
    }Now, it is asymmetric; I can pass Wrapper<Integer> to Wrapper<Number>.compareTo(Wrapper<? extends Comparable>), but I
    cannot pass Wrapper<Number> to Wrapper<Integer>.compareTo(Wrapper<? extends Comparable>). I see, Number is simply not
    comparable to anything.
    Is there a way to express that a Wrapper<T> shall be comparable to another Wrapper<U> where U is comparable to T or is
    a supertype of something that is comparable to T? The wildcard Wrapper<? super Comparable<T>> isn't what I'm looking
    for; it requires that Comparable<Integer> would be a subtype of Number, which it is not.
    Eventually the best implementation I can come up with is this one:
    class Wrapper<T> implements Comparable<Wrapper> {
      public int compareTo(Wrapper other) {
        if (this == other) return 0;
        if (other == null) throw new NullPointerException();
        ... comparison of theObject based on T.compareTo() plus a cast to Comparable<T> ...
    }As soon as I try to be more specific and require that the wrapped object must be somehow comparable I cannot get
    access to a comparable object through a non-comparable supertype any longer. I had somehow hoped that wildcards would
    help expressing things like this, but that's a misconception, right?
    Or does anybody have an idea how to express my intent in terms of wildcards or any other Java feature?

    Have you tried the following declaration:
    class Wrapper<T extends Comparable<T>> implements Comparable<Wrapper<T>> This should pass the restriction imposed on T upwards
    to the super-interface.
    Maybe that works as you expected?It's more restricted than I want because then all my wrappers would be wrappers around a comparable object and I cannot have a Wrapper<Number> any longer. Perhaps that's what I will resort to: a Wrapper, a ComparableWrapper, a CloneableWrapper, ...
    >
    BTW, what is this declaration of yours supposed to
    mean:
    class Wrapper<T> implements Comparable<Wrapper<? extends Comparable<T>>>
    I think it is a wrapper that is comparable to another wrapper and that other wrapper contains an object that is comparable to T. It does not have to be a T, it suffices that it is comparable to T.
    My gut feeling says that the use of wildcards in the
    supertype of a derived class declaration should not be
    legal, since it would render the supertype of
    Wrapper<T> into a "family" of supertypes. Doesn't make
    any sense to me, but if the compiler swallows it, then
    it's probably just my limited understanding...The use of the wildcard in not in the supertype; it is in the type argument of the type argument of the supertype. A declaration such as ... implements Comparable<? extends Wrapper<T>> would be illegal, as far as I understand wildcards.

  • Urgent!!!How to add a Dropdown in a Table View Iterator CLass?

    Hi All,
    I want to add a Drop Down List in the Table View Iterator Class. I am not able to do that.
    If any of you have done please reply, as it is very urgent.
    Please give the code extract possible (with data defination too)
    Regards,
    Dhaval
    Points will be given
    Mark this as Urgent

    Hi
    You need to modify RENDER_CELL_START method of your iterator class and you use the p_replacement_bee attribute to output the drop down
    The example below outputs the units of measure for a material
    data:
            col_dropdown   TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX,
            col_listitem   TYPE REF TO CL_HTMLB_LISTBOXITEM,
            table_bee      TYPE REF TO cl_bsp_bee_table,
    CASE p_column_key.
        WHEN 'Column Name'.
    needs to change.  way too slow to select each time.
            prod_id = <current_line>-matnr.
            CALL FUNCTION 'Z_GET_UOM'
              EXPORTING
                PRODUCT_ID = prod_id
              IMPORTING
                UOMLIST    = uom_list.
            clear uom_line.   append uom_line to uom_list.
            CREATE OBJECT table_bee.
            CREATE OBJECT col_dropdown.
            rowidx = p_row_index.
            shift rowidx left deleting leading space.
            concatenate p_column_key rowidx into  col_dropdown->id.
            col_dropdown->width     = '100%'.
            col_dropdown->selection = <current_line>-zieme.
            table_bee->add( level = 1 element = col_dropdown    ).
            loop at uom_list into uom_line.
              CREATE OBJECT col_listitem.
              col_listitem->key    = uom_line-name.
              col_listitem->value  = uom_line-value.
              table_bee->add( level = 2 element = col_listitem    ).
            endloop.
            p_replacement_bee     = table_bee.

  • Implementation of Linked List class

    I am trying to implement the Linked List class for one week, but I couldn't figure it out. If you know, please let me know.

    Here is an example of a linked list. Hope that will help.
    // define a node of a linked list
    public class Node
    public int data; // point to data
    public Node next; // pointer to next node or point to null if end of list
    // listTest1
    public class ListTest1
    public static void main(String[] args)
    Node list;
    list = new Node();
    list.data = 3;
    list.next = new Node();
    list.next.data = 7;
    list.next.next = new Node();
    list.next.next.data = 12;
    list.next.next.next = null;
    Node current = list;
    while (current != null) {
    System.out.print(current.data + " ");
    current = current.next;
    System.out.println();
    // other listnode
    public class ListNode
    public int data;
    public ListNode next;
    public ListNode()
    // post: constructs a node with data 0 and null link
    this(0, null);
    public ListNode(int value)
    // post: constructs a node with given data and null link
    this(value, null);
    public ListNode(int value, ListNode link)
    // post: constructs a node with given data and given link
    data = value;
    next = link;
    Contents of ListTest2.java
    public class ListTest2
    public static void main(String[] args)
    ListNode list = new ListNode(3, new ListNode(7, new ListNode(12)));
    ListNode current = list;
    while (current != null) {
    System.out.print(current.data + " ");
    current = current.next;
    System.out.println();

  • Importing Graph Class/help implement a weighted graph class

    Is there a way to import a graph structure into my java program so that I do not need to write my own graph class?
    If not, does anyone have a graph class that I can use? I've been trying to implement this program for the past few days..
    I'm having trouble implementing a weighted graph class. This is what I have so far:
    import java.util.ArrayList;
    import java.util.Queue;
    import java.util.*;
    public class Graph<T>
         private ArrayList<Vertex> vertices;
         int size = -1;
         public Graph() throws BadInputException
              ReadFile source = new ReadFile("inputgraph.txt");
              size = source.getNumberOfWebpages();
              System.out.println(size);
              vertices = new ArrayList<Vertex>();
         public int bfs(int start, int end) //breadth first search
              Queue<Integer> queue = new LinkedList<Integer>();
              if(start == -1 || end == -1)
                   return -1;
              if(start == end)
                   return 0;
              int[] d = new int[size];
              System.out.println(size + "vertices size");
              for(int i = 0; i < d.length; i++)
                   d[i] = -1;
              System.out.println(start + " START GRAPH");
              d[start] = 0;
              queue.add(start);
              while(!queue.isEmpty())
                   int r = queue.remove();
                   if(r == end)
                        return d[r];
                   for(EdgeNode ptr = vertices.get(r).head; ptr != null; ptr = ptr.next)
                        int neighbor = ptr.dest;
                        if(d[neighbor] == -1)
                             queue.add(neighbor);
                             d[neighbor] = d[r] + 1;
                             if(neighbor == end)
                                  return d[neighbor];
              return d[end];
         public boolean addEdge(int start, int end)
              Vertex v = new Vertex();
              v = vertices.get(start);
              EdgeNode temp = v.head;
              EdgeNode newnode = new EdgeNode(end, temp);
              v.head = newnode;
              return true;
         public void setRank(int vertex, double rank) //set the weights
              vertices.get(vertex).pageRank = rank;
         public double getRank(int vertex)
              return vertices.get(vertex).pageRank;
    If anyone could help. It would be greatly appreciated
    Edited by: brones on May 3, 2008 12:33 PM

    brones wrote:
    along with the rest of my code, I'm not sure how to implement it as a weighted graphA single list is not the proper way of representing a graph. An easy way to implement a graph is to "map" keys, the source-vertex, to values, which is a collection of edges that run from your source-vertex to your destination-vertex. Here's a little demo:
    import java.util.*;
    public class TestGraph {
        public static void main(String[] args) {
            WeightedGraph<String, Integer> graph = new WeightedGraph<String, Integer>();
            graph.add("New York", "Washington", 230);
            graph.add("New York", "Boston", 215);
            graph.add("Washington", "Pittsburgh", 250);
            graph.add("Pittsburgh", "Washington", 250);
            graph.add("Pittsburgh", "New York", 370);
            graph.add("New York", "Pittsburgh", 370);
            System.out.println("New York's edges:\n"+graph.getEdgesFrom("New York"));
            System.out.println("\nThe entire graph:\n"+graph);
    class WeightedGraph<V extends Comparable<V>, W extends Number> {
        private Map<V, List<Edge<V, W>>> adjacencyMap;
        public WeightedGraph() {
            adjacencyMap = new TreeMap<V, List<Edge<V, W>>>();
        public void add(V from, V to, W weight) {
            ensureExistenceOf(from);
            ensureExistenceOf(to);
            getEdgesFrom(from).add(new Edge<V, W>(to, weight));
        private void ensureExistenceOf(V vertex) {
            if(!adjacencyMap.containsKey(vertex)) {
                adjacencyMap.put(vertex, new ArrayList<Edge<V, W>>());
        public List<Edge<V, W>> getEdgesFrom(V from) {
            return adjacencyMap.get(from);
        // other methods
        public String toString() {
            if(adjacencyMap.isEmpty()) return "<empty graph>";
            StringBuilder b = new StringBuilder();
            for(V vertex: adjacencyMap.keySet()) {
                b.append(vertex+" -> "+getEdgesFrom(vertex)+"\n");
            return b.toString();
    class Edge<V, W extends Number> {
        private V toVertex;
        private W weight;
        public Edge(V toVertex, W weight) {
            this.toVertex = toVertex;
            this.weight = weight;
        // other methods
        public String toString() {
            return "{"+weight+" : "+toVertex+"}";
    }Note that I didn't comment it, so you will need to study it a bit before you can use it. If you have further question, feel free to ask them. However, if I feel that you did not take the time to study this example, I won't feel compelled to assist you any further (sorry to be so blunt).
    Good luck.

  • Cannot Debug Iterator Class

    Hi,
    I am getting error "type of termination: RABAX_STATE " when running a BSP page with TableView Iterator
    I want to debug the iterator local class that I have created. However The control does not stop in the methods of this iterator class when I set a breakpint.
    Can't we debug the iterator class ? how ?
    Thanks
    Anand

    You must set an external/HTTP breakpoint in the class, and then the debugger should stop. Do not confuse it with internal breakpoints. Usually you should also activate system debugging. Check the documentation for details.

  • Error When Trying to POST: Method not implemented in data provider class

    Hi Experts,
    I have created an Odata Service using Netweaver Gateway Service builder. I am using Advanced Rest Client to test the service. I can successfully GET my data, but I run into issues when I try and POST new data.
    When trying to POST, I used the GET method to get the x-csrf-token, and added it to my header. I also updated the body XML with the data that I would like to POST. However, after sending the POST request, I am getting a "500 Internal Service Error" with the xml message "Method '<OdataServiceName>'_CREATE_ENTITY" not implemented in data provider class".
    Any help on this would be greatly appreciated. Thanks!

    Hi Kelly,
    Can you share screenshots of the error? Maybe something wrong with payload :can you share the same also? Did you try to debug it by putting a breakpoint in the CREATE_ENTITY method in the backend? Any luck?
    Regards,
    JK

  • SLIN issues error for jvascript code in iterator class.

    Hi All,
    concatenate '<input o n Change=checkValidity(this.value,"' p_cell_id '");' into replace .
    If i check the iterator classes in SLIN Extended syntax check it throws error
       Program:  ZCL_SRM_OCI_ITERATOR==========CP  Include:  ZCL_SRM_OCI_ITERATOR==========CM002  Row:     99  [Prio 3]
    Char. strings w/o text elements will not be translated:
    '<center>End Date</center>'
    The message can be hidden with "#EC NOTEXT)
    But even after giving "#EC NOTEXT after the specified line in iterator class code I get the same error in SLIN.
    Kindly suggest how to hide this error.
    Regards,
    Anubhav

    This frankly is terrible, terrrible, terrible advice.If it wasn't obvious, and probably it wasn't obvious to the adviser: granting all permissions grants all permissions to all applets. So once you do that, any applet you download from any site has permission to do anything it likes on your system.
    It might be worthwhile for some spammer or malware writer to write an applet that looks for stupid people who have done this to their systems.
    And here's another reason why it's terrible advice: it only solves the problem for one computer. If somebody else wants to run your applet off your website then you have to give them the same advice, and now you move from stupidity to criminal negligence.
    And if you only ever plan to run it on your own computer, there was no point in writing an applet in the first place. Java applications don't have to deal with the security issues.

  • Regarding instantiation of Iterator Class BSP MVC

    Hi Friends,
    I am trying out the MVC based BSP application using tableview iterator. I read the blog by Brain and went through the forums and tried to implement in MVC pattern.  wrt to Iterator part I did the following things...
    1. I created a ZClass and implemented IF_HTMLB_TABLEVIEW_ITERATOR Interface
    2. I created a variable in Controller Attributes TV_ITERATOR type ref to Zclass (Interface implemented)
    3. In the layout I have used the iterator attribute of Tableview assiging to TV_ITERATOR.
    4. I have defined the method Column_definitions....
    and in Do Handle Event I created a object for iterator "Create object tv_iterator".( i created a separate class for interface and thought would instantiate in Controller Class)
    I am not getting the desired output. Hope I am clear with this....
    I am just a beginer in BSP so sorry if its a silly question...
    Thanks

    Hi Mark,
    Thanks for your reply. I tried that in DO_INIT and in DO_REQUEST as well. I started of this application well with the values selecting from Dropdown and then rendering the table columns. But now I have commented everything and just trying to render one column of the table....
    I have one concern.
    I have declared like this
    tv_iterator type ref to ZITERATOR.
    and in DO_INIT I have instantiated. Create Object tv_iterator.
    If you have any suggestions please let me know....
    Thanks

  • Implement method inside abstract class?

    hello everyone:
    I have a question regarding implementation of method inside a abstract class. The abstract class has a static method to swamp two numbers.
    The problem ask if there is any output from the program; if no output explain why?
    This is a quiz question I took from a java class. I tried the best to recollect the code sample from my memory.
    if the code segment doesn't make sense, could you list several cases that meet the purpose of the question. I appreciate your help!
    code sample
    public abstract class SwampNumber
       int a = 4;
       int b = 2;
       System.out.println(a);
       System.out.println(b);
       swamp(a, b);
       public static void swamp(int a, int b)
         int temp = a;
             a = b;
             b = a;
         System.out.println(a);
         System.out.println(b);

    It won't compile.
    You can't instantiate an abstract class before you know anything.
    //somewhere in main
    SwampNumber myNum = new SwampNumber();
    //Syntax ErrorQuote DrClap
    This error commonly occurs when you have code that >>is not inside a method.
    The only statements that can appear outside methods >>in a Java class are >>declarations.Message was edited by:
    lethalwire

  • Implementation of Posix Thread class in c++ for solaris system

    Hello Everyone,
    Please help me with information regarding how to implement Posix Thread Class in c++ for Solaris 5.8 system.
    if available Please let me know any Open Source Posix Threads C++ built-in library available for Solaris System.
    Thanks in Advance.
    Thanks & Regards,
    Vasu

    Posix threads are available on Solaris, and can be used directly in C or C++ programs. Include the header <pthread.h> to get access to the types, constants, and functions. Compile with the option
    -mt
    on every command line, and link with the options
    -mt -lpthread
    If you want to create a class to provide a different sort of interface to phreads you can do so by building on the <pthread.h> functionality.

Maybe you are looking for

  • Help: Report paper layout issue

    I am using Oracle 9i Reports builder for a paper report. When I use generate PDF file the output aligned properly to the center of the paper. When I send the output directly to printer, the output will be off set a bit and the look is not nice. Any s

  • Refresh every time

    Hi Gurus, we recently upgraded to 11.1.1.6.1 from 10g and in one of my dashboard we have navigation to detail report it worked perfectly in 10g but after upgrade we observed that when opening the page links are coming but when pressing the link navig

  • Firewire part 2 - Need Help Refreshing My PMU

    Recap: At some point a few months back, my FCP HD lost contact with my Canopus Datavideo. Under ABOUT MY MAC in HARDWARE>FIREWIRE it only states FIRE WIRE BUS and its speed. I have reloaded Quicktime and tried to REFRESH my AV connectons but to no av

  • Way to have a Spry table fill remainder of a window

    Does anyone know of a cross platform way to get a Spry table to fill the remainder of a window, assuming the top has, for example, controls for performing a query? None of the Spry samples I've seen are designed this way. But then I guess that's not

  • Any way to restore the ML color coding instead of the tag system in maverick

    do not care for the tag system with maverick is there any way to restore the color tagging of the the entire file name with maverick