Help with a Times Table Applet.

Hey,
I am a college student and I have been given the task of constructing a times table applet. Basically, I am stuck to the point of where I have no clue of what to do next. Even my college tutor is stuck as to what to do. I was wondering if you could give me any aid in helping me develop this applet fully, so that it is correct and functioning. Here it is:
import java.io.*;
import Input.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
abstract class TimesTableApplet extends Applet implements ActionListener
     public void initialize();{}
     String message="";
     public void init()
     Button btnClick= new Button("Enter");
add(btnClick);
          //String line = null;
          float table = 0, range = 0, attempts = 0;
          int count = 1, reply = 1, lines = 1;
TextArea textone;
     while(reply==1)
               String line = null;
               table = 0;
               range = 0;
               ClrScr.ClrScr();
               textone = new TextArea("",10,30+12*lines);
               lines=1;
          while (( table < 1) || (table > 20) && attempts <3)
               textone = new TextArea("Input table from 1-20:",10,10);
               table = Input.readFloat();attempts++;
          attempts = 0;
               while (( range < 1) || (range > 14) && attempts <3)
                    textone = new TextArea("Input range 1-14:,10,20");
                    range = Input.readFloat();attempts++;
          if (( table >= 1) && (table <= 20))
               if (( range >= 1) && (range <= 14))
               while (count<=range)
                    textone = new TextArea(count + "x" + table + "=" + count * table);
                    count++;
                    lines++;
               count=1;
               textone = new TextArea("Would you like another go? Type '1' for yes");
               reply = Input.readInt();
     }//end while reply ==1
     }//end init
     public void paint(Graphics g)
     int count =1;
     while ( count <=80)
     System.out.println();
     count++;
}

Ok, why did you post this code? we will not be able to compile it because we are missing
the Input package not did you mention wich jar to find this (nor did google).
Syntax error in initialize
Usage of the unknown object ClrScr (static method ClrScr)
Usage of the unknown object Input (static method readFloat and readInt)
If your tutor is stuck he or she should find a new job.
import java.io.*;
import Input.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
abstract class TimesTableApplet extends Applet implements ActionListener {
     public void initialize(){
     String message = "";
     public void init() {
          Button btnClick = new Button("Enter");
          add(btnClick);
          //String line = null;
          float table = 0, range = 0, attempts = 0;
          int count = 1, reply = 1, lines = 1;
          TextArea textone;
          while (reply == 1) {
               String line = null;
               table = 0;
               range = 0;
               ClrScr.ClrScr();
               textone = new TextArea("", 10, 30 + 12 * lines);
               lines = 1;
               while ((table < 1) || (table > 20) && attempts < 3)
                    textone = new TextArea("Input table from 1-20:", 10, 10);
                    table = Input.readFloat();
                    attempts++;
               attempts = 0;
               while ((range < 1) || (range > 14) && attempts < 3) {
                    textone = new TextArea("Input range 1-14:,10,20");
                    range = Input.readFloat();
                    attempts++;
               if ((table >= 1) && (table <= 20))
                    if ((range >= 1) && (range <= 14)) {
                         while (count <= range) {
                              textone = new TextArea(count + "x" + table + "="
                                        + count * table);
                              count++;
                              lines++;
               count = 1;
               textone = new TextArea(
                         "Would you like another go? Type '1' for yes");
               reply = Input.readInt();
          }//end while reply ==1
     }//end init
     public void paint(Graphics g) {
          int count = 1;
          while (count <= 80) {
               System.out.println();
               count++;
}

Similar Messages

  • Is it possible to make a search help with dynamic  selection table?

    Hi Experts,
    Is it possible to create search helps with dynamic seletion tables means
    i dont know the selection table names at the time of creation of search help.
    These tables will be determined at runtime.
    if yes, Please give an idea how to create and pass the table names at runtime.
    Thanks
    Yogesh Gupta

    Hi Yogesh,
    Create and fill your itab and show it with FM F4IF_INT_TABLE_VALUE_REQUEST
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'field to return from itab'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'field on your screen to be filled'
          stepl           = sy-stepl
          window_title    = 'some text'
          value_org       = 'S'
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    Darley

  • Another times table applet attempt..

    Okay, I posted here a few days ago regarding a previous times table applet I had attempted. Well that one was, basically, going nowhere fast, so I remodelled it and came up with the following code. But the thing is that is comes up with two errors which I can't, for the life of me, figure out how to overcome it. Any suggestions would be greatly appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TimesTableApplet2 extends JApplet
    JTextArea textArea;
    public void init()
    textArea = new JTextArea();
    textArea.setEditable(false);
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(new JScrollPane(textArea));
    getContentPane().add(getUIPanel(), "South");
    public JPanel getUIPanel()
    final JTextField
    range = new JTextField(2),
    table = new JTextField(2);
    JButton enter = new JButton("Calculate");
    enter.addActionListener(new ActionListener());
    public void ActionPerformed(ActionEvent e)
    String s = table.getText();
    int table = Integer.parseInt(s);
    s = range.getText();
    int range = Integer.parseInt(s);
         if (( table >= 1) && (table <= 20))
                        if (( range >= 1) && (range <= 14));
                   int count = 1;
                   int reply = 1;
                   int attempts = 0;
                   if ((( range <= 1) || (range >= 14)) && (attempts <= 3));
                   while (count<=range)
                        textArea.append(count + " x " + table + " = " + count * table);
                        count++;
              count=1;
    JPanel panel = new JPanel();
    panel.add(new JLabel("Range"));
    panel.add(range);
    panel.add(new JLabel("Table"));
    panel.add(table);
    panel.add(enter);
    return panel;
    public static void main(String[] args)
    JApplet applet = new TimesTableApplet2();
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(applet);
    f.setSize(200,200);
    f.setLocation(200,200);
    applet.init();
    f.setVisible(true);
    }

    Typos - errant semi-colons and an extra ' ) '
            enter.addActionListener(new ActionListener());
                                                        ^^
                        if (( range >= 1) && (range <= 14));
                                                          ^
                    if ((( range <= 1) || (range >= 14)) && (attempts <= 3));
                                                                           ^

  • Need help with new Time Capsule/Airport express setup!

    I just hooked up a 500g time capsule to replace an airport extreme, and now my airport utility on my MacbookPro Retina no longer recognizes the airport expresses I had on my network for airplay purposes.  Can anyone help with this issue?

    Instead of a switch you need a wireless router, because your modem will only assign one public ip address to the switch and that ip address will be forwarded to any one computer at a given time...You should replace the switch with a wireless router and it should resolve your concern...

  • Help with the insert table/form tool in BIP 10.1.3.2.1

    Hi, I'm trying to use the insert table/form tool in BIP, and running into some issues that I don't understand. First off, my data coming in looks like this (left column of tool):
    Rowset
    --- Row
    ------ Customer ID
    ------ Customer Name
    ------ Customer City
    ------ Product
    ------ Amount Sold
    I would like the output to do the following:
    a) have one page per customer. Customer should be determined by customer ID, and has attributes of customer ID, customer Name, Customer City
    b) Show a table of all products and the total Amount Sold by product for that customer
    c) Give a "grand total" for the customer
    Can someone help with the steps needed to do this? I've tried several variations of the following without much luck:
    1) Added Rowset and all children to the "Template" pane
    2) Clicked on the "Row" group, and set Grouping = Customer ID, with a break of "New page per Element"
    3) Clicked on the newly created (from step 2) Cust ID group, and set it to group by Product
    4) Moved "amount sold" to be at same level as Product
    5) Moved all of the customer attributes (name, address, etc.) to be at same level as Cust ID
    6) On the Cust ID level, set the style to table
    7) on row and rowset levels, set style to free form
    This seems to be VERY close, except that it isn't creating a total amount for the sum of all products purchased by a customer. What do I need to do inside the tool to get a total per customer to show up?
    Thanks in advance!
    Scott
    p.s. the final hierarchy in the template window looks like this:
    Rowset (style = freeform, no grouping/sort by/breaks)
    --- Row (style = freeform, group by customer ID, break new page per element)
    ------ Customer ID (style = table, group by product, no breaks)
    --------- Product (nothing special)
    --------- Amount Sold (calc for grouping = SUM)
    ------ Customer Name (nothing special)
    ------ Customer City (nothing special)
    Thanks very much for the help!
    Scott

    To anyone else who sees this post, the answer is to do the following. Insert the Amount Sold field using the "Insert Field" tool, and set the function to sum, with the grouping checkbox turned on.
    Thanks,
    Scott

  • Help with quick time video on iphone

    Received e-mail on iphone with quick time video.Will not play.Do I need to donload quick time on iphone or is there a app for that????

    Import it into iTunes and create an iPhone version. In iTunes highlight the video, then Advanced>Create and iPod or iPhone Version.  Sync this version to your phone.

  • Need some help with a timer that draws my JTable.

    Assumre I have the following code:
    * Created on Feb 25, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    * @author PaulB
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    import java.util.Vector;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class blah extends JApplet implements ActionListener {
         private JTable m_Table;
         private Timer m_Timer  = new Timer(500, this);
         private int x = 0;
         public void actionPerformed(ActionEvent e) {
              this.m_Timer.stop();
              this.x++;
              if (x == 10) {
                   this.setTable();
              } else {
                   this.m_Timer.start();
         public void init() {
              this.m_Timer.start();
         private void setTable() {
              Vector vData               = new Vector();
              Vector vFields               = new Vector();
              // Set our layout.
              getContentPane().setLayout(new GridLayout(1,0));
              // Set our table fields.
              for (int i = 0; i < 5; i++) {
                   vFields.addElement("test");
              // Set our default table values.
              for (int i = 0; i < 5 ; i++) {
                   Vector vSubData     = new Vector();
                   vSubData.addElement(null);
                   for (int j = 0; j <= vFields.size(); j++) {
                        vSubData.addElement(null);
                   vData.addElement(vSubData);
              // Create a JTable that disallow edits.
              this.m_Table = new JTable(vData, vFields) {
                   public boolean isCellEditable(int rowIndex, int vColIndex){
                        return false;
              // Disable column reording.
              this.m_Table.getTableHeader().setReorderingAllowed(false);
              // Create the scroll pane and add the table to it.
              JScrollPane scrollPane = new JScrollPane(this.m_Table);
              // Add scroll pane to the applet.
              getContentPane().add(scrollPane);
    }I use a timer to draw my JTable, and it works properly, but I physically have to re-size my Applet frame for the JTable to be displayed... could somebody help me out?
    Thanks inadvance

    Just add a validate and repaint after settable, see changes made by V.V. shown below:
    /* <applet code="blah" width=300 height=300></applet> */
    import java.util.Vector;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class blah extends JApplet implements ActionListener {
       private JTable m_Table;
       private Timer m_Timer = new Timer(500, this);
       private int x = 0;
       public void actionPerformed(ActionEvent e)  {
          m_Timer.stop();
          x++;
          if (x == 10)  {
             setTable();
             validate();          // added by V.V.
             repaint();          // added by V.V.
          } else {
             m_Timer.start();
       public void init()  {
          this.m_Timer.start();
       private void setTable()  {
          Vector vData = new Vector();
          Vector vFields = new Vector();   
          // Set our layout.
          getContentPane().setLayout(new GridLayout(1,0));   
          // Set our table fields.
          for (int i = 0;i < 5;i++) {
             vFields.addElement("test");
          // Set our default table values.
          for (int i = 0;i < 5;i++) {
             Vector vSubData = new Vector();
             vSubData.addElement(null);
             for (int j = 0;j <= vFields.size();j++) {
                vSubData.addElement(null);
             vData.addElement(vSubData);
          // Create a JTable that disallow edits.
          this.m_Table = new JTable(vData, vFields)  {
             public boolean isCellEditable(int rowIndex, int vColIndex) {
                return false;
          // Disable column reording.
          this.m_Table.getTableHeader().setReorderingAllowed(false);   
          // Create the scroll pane and add the table to it.
          JScrollPane scrollPane = new JScrollPane(this.m_Table);   
          // Add scroll pane to the applet.
          getContentPane().add(scrollPane);
    };o)
    V.V.
    PS: If this helped, don't forget to award the dukes!

  • Help with quierying a table with varchar as dates

    guys need a little help im close but i just can't close the deal.
    i have a table that the field is dataytped as varchar2 but it holds a date like such '20100615' todays date.
    I know the first thing you guys are going to say is that this should be formatted as a date but it is not my table and i have to deal with this.
    any how here is the problem im trying to query for a range of dates and im having one hell of a time doing it.
    as you cant tell from my query below im atempting to bring back only 15days worth of data by date.
    can someone please point out the obvious. I've been at it for a day now trying to get this to work.
    select DISTINCT to_date(fwvitals_date, 'YYYYMMDD') "fwvitals_date"
    FROM fwvitals
    where fwvitals_date
    between (((SELECT MAX(fwvitals_date)FROM FWVITALS)))
    AND ((select to_CHAR(sysdate-15, 'YYYYMMDD') from dual))

    Hi,
    user633029 wrote:
    guys need a little help im close but i just can't close the deal.
    i have a table that the field is dataytped as varchar2 but it holds a date like such '20100615' todays date.
    I know the first thing you guys are going to say is that this should be formatted as a date but it is not my table and i have to deal with this.You're absolutely correct!
    any how here is the problem im trying to query for a range of dates and im having one hell of a time doing it.
    as you cant tell from my query below im atempting to bring back only 15days worth of data by date.
    can someone please point out the obvious. I've been at it for a day now trying to get this to work.
    select DISTINCT to_date(fwvitals_date, 'YYYYMMDD') "fwvitals_date"
    FROM fwvitals
    where fwvitals_date
    between (((SELECT MAX(fwvitals_date)FROM FWVITALS)))
    AND ((select to_CHAR(sysdate-15, 'YYYYMMDD') from dual))"WHERE x BETWEEN y AND z" is equivalent to
    "WHERE x >= y AND x <= z".
    If y > z, then no rows will ever qualify, and if y is the gratest value in your table, then (probably) very few rows, perhaps only 1 will satisfy the condition even if z > y.
    What exactly are you trying to do?
    It helps if you post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. If the results are conditional, give a couple of examples, e.g,, "If I run the query at any time on June 15, I want ... but if it's June 16, then I want ..."
    If you want the most recent 15 days, including today (that is, when run on June 15, you want June 1 through June 15) then:
    SELECT DISTINCT 
         fwvitals_date
    FROM      fwvitals
    WHERE       fwvitals_date     BETWEEN     TO_CHAR (SYSDATE - 14, 'YYYYMMDD')
                   AND     TO_CHAR (SYSDATE,      'YYYYMMDD')
    ;Fortunately, the strings are in a format such that sorting is meaningful, so you don't have to run TO_DATE on each one, and get conversion errors.
    Edited by: Frank Kulash on Jun 15, 2010 9:52 PM

  • Need help with adding a table-like chart

    Post Author: lindad
    CA Forum: Charts and Graphs
    I am trying to see if there is any way to add a table to a Crystal Report (using Crystal 10) that looks like a table you would create in MSWord.  We need an easy way to remove and add columns in a table and right now using drawn lines and moving fields to realign every time is a real pain.

    Post Author: lindad
    CA Forum: Charts and Graphs
    The table includes multiple rows and columns where the fields are from different places in the db.  Also, the headers are just txt fields that do not associate with a specific field. 
    If I add a border to the fields, I still need to manually move them horizontally and vertically to realign if I add or delete a column or row.  As you know in MSWord, if you add or remove a column or row in a table, the table automatically resizes itself and makes the fields line up correctly.
    Is there any way to do this in Crystal?

  • Need help with bufferstrategy in a applet

    im getting the following errors that its not public in class component
    but in the api it says it's public heres the error.
    can anyone help ?
    heres the code and error
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.image.*;
    //implements Runnable,KeyListener,MouseListener,MouseMotionListener
    public class memImgSrcApplet extends Applet
    MemoryImageSource producerobj;
    Image img;
    boolean done = false;
    int w,h,cx,cy;long nofloops =0;
    int [] pixels;
    DirectColorModel colorModel;
    MemoryImageSource source;
    BufferStrategy strategy;
      public void init(){
       System.out.println(" init " );
       GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
       //setUndecorated(true);// knock out bars and stuff
       setIgnoreRepaint(true);// ignore automatic repaint.
       show();//show fullscreen.
        w = getSize().width;h = getSize().height;
        pixels = new int[w * h];
        colorModel = new DirectColorModel(32, 0x00FF0000, 0x0000FF00, 0x000000FF,0);
        source = new MemoryImageSource(w, h, colorModel, pixels, 0, w);
        source.setAnimated(true);
        Image img = createImage(source);
        createBufferStrategy(2);
        strategy = this.getBufferStrategy();
      public void run(){
       System.out.println(" run " );
       int j =0;
       long t = System.currentTimeMillis();
       while(j < 1000){
       j++;
       for (int n=pixels.length; --n>=0;){ pixels[n] = n+j;}
       source.newPixels();
       Graphics g = strategy.getDrawGraphics();
       g.drawImage(img, 0, 0, null);
       strategy.show();
       System.out.println(" 1000 frames in  milliseconds elapsed "+(System.currentTimeMillis()-t)+" seconds "+(System.currentTimeMillis()-t)/1000f );
       System.out.println(" fps "+( 1000f/ ((System.currentTimeMillis()-t) /1000f )) );
      public void start(){
      System.out.println(" start " );
      public void stop(){
      System.out.println(" stop " );
         //public void paint(Graphics g){System.out.println(" paint " );}
    }     C:\myjava\documents downloaded\fullscreen\memImgSrcApplet.java:30: createBufferStrategy(int) is not public in java.awt.Component; cannot be accessed from outside package
    createBufferStrategy(2);
    ^
    C:\myjava\documents downloaded\fullscreen\memImgSrcApplet.java:31: getBufferStrategy() is not public in java.awt.Component; cannot be accessed from outside package
    strategy = this.getBufferStrategy();
    ^
    Note: C:\myjava\documents downloaded\fullscreen\memImgSrcApplet.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    2 errors
    Exit code: 1
    There were errors
    and i have no idea why im geting the depreciation note

    I think if you use BufferStrategy in an Applet, you have to do it on a Canvas and add the Canvas to the Applet. I'll have to check to make sure.

  • Help with JAI in java applet

    I'm fairly inexperienced with java, but I'm hopeful someone here won't mind helping.
    I am using netbeans and have a project to let a user upload files or scan them in with a usb scanner. I've imported icepdf to the libraries and referenced it in the jnlp file and it worked fine. I did the same with jai_windows-i586.jar and I get this error when trying to upload
    Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream
    Caused by: java.lang.ClassNotFoundException: com.sun.media.jai.codec.SeekableStream
    I expanded the jar file and found it contained an exe. jai-1_1_3-lib-windows.i586.jre.exe. I found that if I run that exe [(found here)|http://download.java.net/media/jai/builds/release/1_1_3/] on any pc locally, I will not get the errors on that pc.
    Am I referencing it incorrectly?
    <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" max-heap-size="1024m" />
    <jar href="ScanAreaUI.jar" main="true" />
    <jar href="icepdf-core.jar"/>
    <jar href="jai_windows-i586.jar"/>
    <nativelib href="JTwain-Native.jar" />
    </resources>
    Do I need to make the applet install the exe located in the jar? I've tried to find information on how to do that without much luck so far.
    Thanks for any advice/help.

    If it's not finding your "exe" file, then you have an OS path problem. You can either change your path variable in Windows or you can move that "exe" to a location where you already have a path defined. You do realize that when you use features of JAI that are not incorporated in to the JDK, you'll have to have the JAI package loaded on every machine you ever want to run your project.

  • Making a Quiz in Flash. Need help with input time

    Hi Flash Community,
    I'm making currently a quiz using Flash Pro CS5. What I want to implent is a time bar which will load once the bar is loaded it will go to the next frame.
    So what I need is first a timer which will start immediately when the user sees the question and I need a time bar which will indicate how far the timing is. So let's say you have 30 seconds to answer the quiz. When the timer is at 15 seconds the bar will be at half.
    Something like this http://www.google.nl/imgres?imgurl=http://theportablegamer.com/wp-content/uploads/2009/10/ question.jpg&imgrefurl=http://theportablegamer.com/tag/quizquizquiz/&usg=__xsykgRnehmB9P97 gg3W9tAx2Dfg=&h=320&w=480&sz=57&hl=nl&start=0&sig2=tdKlW2Iv6zHo3THsHwdVpQ&zoom=1&tbnid=ToM bL22o-D7BOM:&tbnh=107&tbnw=160&ei=aiz7TcGONI2gOpic0b4E&prev=/search%3Fq%3Dquiz%2Binterface %26um%3D1%26hl%3Dnl%26sa%3DN%26biw%3D1902%26bih%3D909%26tbm%3Disch&um=1&itbs=1&iact=rc&dur =317&page=1&ndsp=68&ved=1t:429,r:13,s:0&tx=100&ty=47
    Could anyone help me with this? How do I need to do this?
    Thanks!

    Create a movieclip with tween about 30 frames and actions stop() in the first frame
    AS3 code:
    import flash.utils.Timer;
    var timer:Timer=new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER,fn);
    timer.start();
    function fn(e:TimerEvent):void{
        trace(mc.currentFrame);
        if (mc.currentFrame==30){
            timer.removeEventListener(TimerEvent.TIMER,fn);
        mc.gotoAndStop(mc.currentFrame+1);
    AS2 code:
    var n=setInterval(mcfn,1000);
    function mcfn(){
        trace(mc._currentframe);
        if (mc._currentframe==30){
            clearInterval();
        mc.gotoAndStop(mc._currentframe+1);

  • Help with a timer?

    Here's what I want to do:
    When the mouse is pressed (on mouseDown), set sprite.BlendLevel to a value (I know how to do this).
    When the mouse is lifted, begin a timer. If the mouse has not been pressed after 30 seconds, the sprite.BlendLevel value changes.
    (I want this timer to reset every time the mouse enters a mouseUp state. HOWEVER, it should not reset every frame update - ONLY when the mouse is first lifted.)
    Basically, I'm making it so a touch screen app fades if it hasn't been touched for 30 seconds (with just one big sprite overlaying it at varying blend levels). That's all.
    I can't wrap my mind around timers, so that's why I'm having problems with figuring this out.
    Thanks for any help you can offer. I truly appreciate it. I feel like there aren't enough people out there working with Director anymore, so finding help like this is valuable.

    Type this in your Message window, and then press Enter:
    go movie "http://nonlinear.openspark.com/tips/sprites/TimerFade.dir"
    Is that the sort of thing that you are looking for? It's currently set to trigger after 5 seconds, but you could use...
      the timeOutLength = 1800
    ... in line 13 of the Fade Behavior, to make it wait 30 seconds (1800 = 30 seconds * 60 ticks/second) before it triggers.

  • Help with adding a table and column which are strings to a database

    I want to add a column and table into a database.
    I want to do this both for the Table and Column.
    I want (Data) and Test to be replaced with my strings.
    String MyData = "My column"; // This will change at times.
    String MyData2 = "My table";
    String sql = "Insert into Test (Data) Values (?)";     
    How can I change (Data) and Test to add variables "MyData" and "MyData2".
    Thanks.

    This is a fairly short intro to JDBC that gives the details:
    http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

  • Help withe loop on tables

    Hallow in my table itab I have employee (sobid employee number and names ex. 80 emp) in my loop(b_itab) I get all he employee that doing the course (their sobid just 3 emp) how can I use b_itab to write to other table (d_itab) to write all the employee that don’t doing the course .I need a  general solution.
    <b>Ex.i have a table with 80 emp and I doing a loop on this table and find 3 employee that doing course how can I do  comparison in the 2 table that if the employee not in b_itab(emp doing course) write them in d_itab(oteer table).</b>    .if u need more details  please let me now.
    regards

    Loop at itab.
    Specify the condition here if they are doing the course
    if (Condition here)
    append itab to b_itab.
    else
    append itb to d_tab.
    endif.
    endloop.
    The other option will be:
    loop at itab.
    read table b_itab with key course = itab-course.
    if sy-subrc NE 0.
    append itab to d_itab.
    endif.
    endloop.
    Can you try these options? If not, please give the structure of the internal table to know exactly you want to do.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

Maybe you are looking for

  • Programs will not open up

    I installed a new hard drive a Hitachi T1. i installed the OS Tiger to this hard drive then copied over the data from the 160gb hard drive during installation. I cannot get applications to open up. The one I can get is Opera. Safari or Firefox and It

  • SDK on the BO platform - installation, updates, security

    Hi everybody, i´ve some pretty important questions regarding SDK Extensions and their installation on a BO platform. I´m really interested in your thoughts and opinions and hope for your answers. 1) Could SDK components force a BOE server crash? Curr

  • Benefit enrollment for dependents ?

    Hi Experts, In my company, All employees are eligible for standard health plan, ( Includinf probationer ), And for who has worked for 5 years or more ( in my company ) , Or with a posiontion higher than manager will be able to enroll this plan for th

  • Excel 2007

    Hi All When running SAP BW reports in BEx,  through excel 2007 version, it says it can only show 65,536 rows while actually 2007 has row limitations has 1,048,576. My query output has more than 65536 rows occupied but still in excel 2007,I am not see

  • Letting a user add a node to a tree

    Hi, Currently I have a tree that is built dynamically with a remote object call. Also, if the user clicks on a node, a menu pops up allowing the user to create a child for the node. How do I let the user add a node to the tree ? I saw tangential exam