Whats the problem in this vi?

Dear all,
with loads of help from many members of this group we designed the following attached vi.
but we made some changes recently to get a running/scroll display. basically the program has two loops, one for data acquistion and one for data generation. the acquistion loop designed to update 1 data point at a time and generation loop designed to update 1000 points at a time. but now the vi works in a funny way. when the program starts it runs the acquisition loop first and when the stop key is pressed it runs the generation loop. to stop the program, i have to abort it. can anyone point me what the mistake is and direct me in the right way please.
Attachments:
broadband_filt_unfilt.vi ‏714 KB

Dear all,
thanks for your suggestions. i changed the looping structure and it is working fine. thanks dev for mentioning that example program once again. i should've had a look on that program more carefully the first time u mentioned. i simply followed the principle on that program and it did the magic.  thanks once again.
anyway, but as usual i have one problem now. i am not sure whether u remember the case loop u helped me with in the earlier stages for recording purposes. briefly it had been designed to record for a given number of time, depending on the number of data per cycle. it  had two options, when we press the record button, it can record for the defined amount of time or the recording can be stopped before the defined amount of time is over and so the record button will be ready for the next go.
but for some reasons, i m lacking the second option now. i can record without any problem for the defined amount of time but if i stop the recording during that period, i cant able to restart the recording again. but i have to stop the program and have to start to do that. can u tell me whats the reason for this please.
i attached the program as usual.
Many thanks.
Rishe.
Attachments:
narrowband_filt_unfilt.vi ‏812 KB

Similar Messages

  • My iphone 4 suddenly blank, i thought it is out of battery and put on a charger, but in few minutes later my iphone turns to be too hot on the right half side of its body. i pull off the charger. whats the problem is this?

    my iphone 4 suddenly blank, i thought it is out of battery and put on a charger, but in few minutes later my iphone turns to be too hot on the right half side of its body. i pull off the charger. whats the problem is this?
    the next day i tried to connet with itunes on pc, but its undetectable. what should i do? i think i will need to delete notes, pivtures and video recordec by the iphone itself but how to do this since the phone cant be on at all. lease help me. its only 7moths old since i buy it

    i try to reset but nothing happened. & my warranty had end bcause i bought thru small dealer with a month's shop warranty only. due to problem of getting hot of the iphone's right side body, is it may cause of battery problem? how much will it cost to solve/repair this kind of problem?
    thank you for ur help earlier

  • Whats the problem with this page

    hi,
    i have problem with this page
    page
    it loading the video but not showing any content related to
    the video.
    i use
    [code]
    var netCon:NetConnection = new NetConnection();
    netCon.connect(null);
    var netStr:NetStream = new NetStream(netCon);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    getError);
    var video:Video = new Video();
    video.attachNetStream(netStr);
    addChild(video);
    video.x=201;
    video.y=125;
    function getError(e:AsyncErrorEvent) {
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playVideo);
    function playVideo(e:MouseEvent) {
    netStr.resume();
    removeEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler
    this.addEventListener(Event.ENTER_FRAME, fileLoaded);
    var loaderBar:Sprite = new Sprite();
    addChild(loaderBar);
    function fileLoaded(e:Event) {
    var percent:Number = (netStr.bytesLoaded * 100 ) /
    netStr.bytesTotal;
    loaderBar.graphics.clear();
    loaderBar.graphics.beginFill(0xDE2C18);
    loaderBar.graphics.drawRect(205,378,percent * 4.32,5);
    loaderBar.graphics.endFill();
    if (percent==100) {
    this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
    [/code]

    here is the full code
    and i have an error saying:
    ArgumentError: Error #2004: One of the parameters is
    invalid.
    at flash.display::Graphics/drawRect()
    at VIDEOPLAYER_fla::MainTimeline/fileLoaded()
    [code]
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.display.SimpleButton;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.media.Video;
    import flash.events.MouseEvent;
    import flash.events.KeyboardEvent;
    import flash.events.Event;
    import flash.display.Graphics;
    import flash.text.*;
    var netCon:NetConnection = new NetConnection();
    netCon.connect(null);
    var netStr:NetStream = new NetStream(netCon);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    getError);
    var URL:String =
    "/hakans/videos/BEDUK_AUTOMATIK00.flv?start=";
    var offset:uint = 1048576;
    var tamURL:String = URL + offset;
    trace(tamURL);
    var video:Video = new Video();
    video.attachNetStream(netStr);
    video.x=201;
    video.y=125;
    netCon = new NetConnection();
    netCon.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    netCon.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    function netStatusHandler(event:NetStatusEvent):void {
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    connectStream();
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Unable to locate video: " + tamURL);
    break;
    function connectStream():void {
    netStr.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    netStr.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    asyncErrorHandler);
    netStr.play(tamURL);
    addChild(video);
    function securityErrorHandler(event:SecurityErrorEvent):void
    trace("securityErrorHandler: " + event);
    function asyncErrorHandler(event:AsyncErrorEvent):void {
    // ignore AsyncErrorEvent events.
    function getError(e:AsyncErrorEvent) {
    var myTextBox:TextField = new TextField();
    var myText:String = "Bytes loaded";
    function TextWithImage()
    addChild(myTextBox);
    myTextBox.text = myText+netStr.bytesLoaded;
    /*--------------< Videoyu Durdurma, Oynatma ve Başa
    Alma >------------------*/
    stage.addEventListener( KeyboardEvent.KEY_DOWN,
    keyPressHandler );
    function keyPressHandler( e:KeyboardEvent ):void {
    // if the spaceBar is pressed then toggle video play/pause
    if( e.charCode == 32 ) {
    netStr.togglePause();
    play_btn.addEventListener(MouseEvent.MOUSE_DOWN, playVideo);
    function playVideo(e:MouseEvent) {
    netStr.resume();
    removeEventListener(KeyboardEvent.KEY_DOWN, keyPressHandler
    pause_btn.addEventListener(MouseEvent.MOUSE_DOWN,
    pauseVideo);
    function pauseVideo(e:MouseEvent) {
    netStr.pause();
    stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopVideo);
    function stopVideo(e:MouseEvent) {
    netStr.pause();
    netStr.seek(0);
    fastforward_btn.addEventListener(MouseEvent.MOUSE_DOWN,doForward);
    function doForward(e:MouseEvent):void {
    var f:int = 1; //you can schange the skipping time here
    netStr.pause();
    netStr.seek(netStr.time + f);
    netStr.resume();
    rewind_btn.addEventListener(MouseEvent.MOUSE_DOWN,doRewind);
    function doRewind(e:MouseEvent):void{
    var x:int = 2;
    netStr.pause();
    netStr.seek(netStr.time - x);
    netStr.resume();
    fullscreen_btn.addEventListener(MouseEvent.MOUSE_DOWN,doFull);
    function doFull(e:MouseEvent):void{
    stage.displayState = StageDisplayState.FULL_SCREEN;
    /*--------------< Videoyu Durdurma, Oynatma ve Başa
    Alma / >------------------*/
    /*--------------< Video İçin Yükleme Bilgi
    Çubuğu >------------------*/
    var loaderBg:Sprite = new Sprite();
    loaderBg.graphics.beginFill(0xc78f8e);
    loaderBg.graphics.drawRect(205 , 378 , 430 , 5);
    loaderBg.graphics.endFill();
    addChild(loaderBg);
    this.addEventListener(Event.ENTER_FRAME, fileLoaded);
    var loaderBar:Sprite = new Sprite();
    addChild(loaderBar);
    function fileLoaded(e:Event) {
    var percent:Number = (netStr.bytesLoaded * 100 ) /
    netStr.bytesTotal;
    loaderBar.graphics.clear();
    loaderBar.graphics.beginFill(0xDE2C18);
    loaderBar.graphics.drawRect(205 , 378 , percent * 4.32 , 5);
    loaderBar.graphics.endFill();
    if (percent==100) {
    this.removeEventListener(Event.ENTER_FRAME, fileLoaded);
    /*--------------< Video İçin Yükleme Bilgi
    Çubuğu / >------------------*/
    /*--------------< Video Meta Bilgileri
    >------------------*/
    var metaObject:Object = new Object();
    netStr.client = metaObject;
    metaObject.onMetaData = getMetaInformation;
    var lengthOfVideo:Number = 0;
    function getMetaInformation(e:Object):void {
    lengthOfVideo = e.duration;
    trace("Genişlik :" + e.width);
    trace("Yükseklik :" + e.height);
    /*--------------< Video Meta Bilgileri /
    >------------------*/
    /*--------------< Videonun Durum Çubuğu
    >------------------*/
    //may cause problem part
    var GraphicsExample :Sprite = new Sprite();
    var size:uint = 10;
    var bgColor:uint = 0x999999;
    var borderColor:uint = 0x999999;
    var borderSize:uint = 0;
    var cornerRadius:uint = 9;
    var gutter:uint = 5;
    var dragBar:Sprite = new Sprite();
    var halfSize:uint = Math.round(size / 2);
    dragBar.graphics.beginFill(bgColor);
    dragBar.graphics.lineStyle(borderSize, borderColor);
    dragBar.graphics.drawCircle(halfSize, halfSize, halfSize);
    dragBar.graphics.endFill();
    dragBar.x=201;
    dragBar.y=376;
    addChild(dragBar);
    var drag:Boolean = false;
    this.addEventListener(Event.ENTER_FRAME, setDragBar);
    function setDragBar(e:Event) {
    if (!drag) {
    dragBar.x = ((netStr.time / lengthOfVideo) * 429) + 201;
    /*--------------< Videonun Durum Çubuğu /
    >------------------*/
    /*--------------< Videonun Kaydırma Çubuğu
    >------------------*/
    dragBar.addEventListener(MouseEvent.MOUSE_DOWN,
    startDragging);
    dragBar.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    dragBar.buttonMode = true;
    var rect:Rectangle = new Rectangle(205,378,429,0);
    function startDragging(e:MouseEvent) {
    drag = true;
    netStr.pause();
    dragBar.startDrag(false,rect);
    function stopDragging(e:MouseEvent) {
    dragBar.stopDrag();
    drag = false;
    netStr.resume();
    this.addEventListener(Event.ENTER_FRAME, reSetVideo);
    function reSetVideo(e:Event) {
    if (drag) {
    netStr.seek(Math.floor(((dragBar.x-201) / 429) *
    lengthOfVideo ));
    /*--------------< Videonun Kaydırma Çubuğu
    / >------------------*/
    netStr.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler1);
    function netStatusHandler1(e:NetStatusEvent):void
    switch (e.info.code)
    case "NetStream.Seek.InvalidTime":
    trace("You have seeked too far ahead, the video hasn't fully
    loaded yet");
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Unable to locate video");
    break;
    /*--------------< Video Ses Kontrolü
    >------------------*/
    sound_btn.addEventListener(MouseEvent.MOUSE_DOWN, setSound);
    var checkSound:Boolean = true;
    var soundTrans:SoundTransform = new SoundTransform();
    function setSound(e:MouseEvent) {
    if (checkSound) {
    soundTrans.volume = 0;
    checkSound = false;
    } else {
    soundTrans.volume = 1;
    checkSound =true;
    netStr.soundTransform = soundTrans;
    /*--------------< Video Ses Kontrolü /
    >------------------*/
    [/code]

  • Whats the Problem with this Company?

    Most Company's want to keep there Customers happy it seems I am disappointed in everything except the reception is good. I bought a Smart phone and if you go over your limit it cost to use it.. Man my bill is higher than the Twin Towers used to be... And still I have to pay if I go over a specific amount for sharing photo's what is this? yu say its unlimited everything then they change that and say something else it sounds to me like Greed has gone to Verizon's account with all of us.. I am ashamed this is happening to all of us.. I know people who can do anything without being charged with other company's why is it this one doesn't care about our Wallets and be so happy that they have customers that actually pay there bill each month and give us a break... Shame.. Verizon.. I do love you but don't like your plans.. They are not ethical. To us.. or For us.. You need to change your plans and stop changing everything each month to something else when Your told you have unlimited everything then that is what it should be.. Now you have gone to far...

    http://m.digitaltrends.com/opinion/opinion-its-a-trap-beware-carriers-new-unlimited-talk-and-text-plans/   This site is one of many that explains how the cash cows of "talk & texting" has declined.  And it mentions family usage as you are doing.  Personally I don't talk much on the phone, I don't text much or for that matter use a load of data. So I am basically overpaying for everything. But I like knowing I have it available if I need it.  I love taking photos of the places my wife and I travel to. I upload to Facebook every step of the trip, so our friends and family have the pictures. I use a photo upload to Walgreens to print them out in hard copy for our photo albums, I also burn them to cd/dvd so I just don't use talking that much. Those texts can add up however. I use around 600 to my friends. But only from me and not my wife.  The emergency phone also very rarely sends texts or makes calls so no big deal there. But my wife uses her phone for calls, and that Netflix, You Tube and TW Cable TV so she loves data. But ours is unlimited not tiered or metered. She is happy that is all that matters.

  • Whats the problem with this code?

    import javax.swing.JOptionPane;
    public class change{
      int coins[] = {1,5,10,25,50};
      int change=0;
      public void backtracking(coins,change){
        int b=0;
        for(int i=0; i<=4; i++){
          if (coins[i] <= change){
            b = max(b, coins[i]+backtracking(i, change - coins));
    System.out.println("Output: "+b);
    public static void main(){
    int input = JOptionPane.showInputDialog("Amountof the change? ");
    backtracking(coins, input);

    Here's a few, for starters
    import javax.swing.JOptionPane;
    public class change{
    //class names should start with capital letters
      int coins[] = {1,5,10,25,50};
      int change=0;
      public void backtracking(coins,change){
    //this is a method signature, needs type identifiers etc, something like public void backtracking(int[] anyIntArray,int anyInt)
        int b=0;
        for(int i=0; i<=4; i++){
    //here, 4 is a magic number, if you mean <= all the elements of coins[], use < coins.length
          if (coins[i] <= change){
    //coins[i] will never be less then change(which is 0)
            b = max(b, coins[i]+backtracking(i, change - coins));
    //there is no method max declared anywhere
    System.out.println("Output: "+b);
    public static void main(){
    //main method signature is incorrect, will compile, but will error
    int input = JOptionPane.showInputDialog("Amountof the change? ");
    //you're trying to put a string into an int
    backtracking(coins, input);
    //you have not created an instance of class Change, to use this method

  • Whats The Problem in this code

    IF :DEMAND_ORDER_DET.PART_ID = ANY (SELECT ALL PART.CATEGORY_ID||'-'|| PART.TYPE_ID||'-'|| PART.SIZE_ID||'-'|| PART.PART_ID FROM PART) THEN
         MESSAGE('THIS IS ALREADY ORDERED..');
         MESSAGE('THIS IS ALREADY ORDERED..');
    END IF ;
    Is this correct or no?

    select count(*)
    into local_variable
    from PART
    where :DEMAND_ORDER_DET.PART_ID == PART.CATEGORY_ID||'-'|| PART.TYPE_ID||'-'|| PART.SIZE_ID||'-'|| PART.PART_ID;
    IF local_variable > 0 then
    MESSAGE('THIS IS ALREADY ORDERED..');
    MESSAGE('THIS IS ALREADY ORDERED..');
    END IF ;
    I believe you cant use select statement in if statement.
    With Regards,
    yathish

  • Whats the problem with this query?

    Its doing huge sort operations and is throwing the following all the time.
    ORA-1652: unable to extend temp segment by 256 in tablespace
    Unable to figure out if I should be increasing the sort area size. I initially increased the TEMP space by 50% to 3 G and it still fails. Any recommendations ?
    SELECT distinct b.*,
    f.carrier_id
    FROM po a
    JOIN (SELECT c.asn_shipment_id,
    c.po_cd,
    c.po_ln,
    c.ve_cd,
    c.itm_cd,
    d.shipped_date,
    c.qty_shipped,
    d.transport_id
    FROM po_asn_line_interface c
    JOIN po_asn_interface d
    ON to_char (c.asn_shipment_id) = to_char (d.asn_shipment_id)
    WHERE c.stat_desc = 'ASN header invalid.'
    AND d.stat_desc = 'Single vendor error: 1User-Defined Exception'
    AND EXISTS (SELECT 1
    FROM po_asn_line_interface e
    WHERE c.po_cd <> e.po_cd
    AND to_char(c.asn_shipment_id) = to_char(e.asn_shipment_id))) b
    ON to_char (a.po_cd) = to_char (b.po_cd)
    JOIN po_ln f
    ON a.po_cd = f.po_cd
    AND f.ln# = b.po_ln
    WHERE a.stat_cd = 'O'
    AND NOT EXISTS (SELECT 1
    FROM po_ln$actn_hst e
    WHERE e.po_cd = b.po_cd
    AND e.ln# = b.po_ln
    AND po_actn_tp_cd in ('SVB', 'RCV'))

    Hi,
    The types of SQL statements that can cause database sorts to occur include the following:
    * ORDER BY
    * GROUP BY
    * SELECT DISTINCT
    * UNION
    * INTERSECT
    * MINUS
    * ANALYZE
    * CREATE INDEX
    * Joins between tables on columns that are not indexed
    Making sure that all foreign key columns are indexed will also help reduce sorting when tables are joined via primary and foreign key columns. See also if you can avoid use DISTINCT clause in your SQL statement.
    Cheers

  • Hi,I'm having problems with Lightroom CC,as when I go to the Develop section on Lightroom it keeps coming up that this section is disabled and that I need to renew my membership.Can you please advise what the problem is as I have the student subscription

    Hello,
    I'm having problems on the Lightroom CC App,as it seem's that when I open the Develop heading at the top of the screen,there is message that comes,which says this section is disabled and I need to renew my membership.My membership is up to date regarding payments etc.I use the student/ teacher version of the CC as I'm a student.Can anybody please advise what the problems seem's to be and what can i do to access the develop and other facilities on Lightroom?
    Many Thank's
    J:)
    Ps Is this a common problem on the Student/teaching version of CC?

    This is an indication that Lightroom is not connected to your subscription. Verify that your are logged into the Creative Cloud desktop app, or try logging out and back in again to refresh your subscription information: Sign out, Sign in | Creative Cloud Desktop app.
    Also, verify that your student subscription is still current and active.

  • My Ipod touch is frozen.  Shows USB cable with arrow pointing to Itunes.  What is the problem?  This is the second one I have had that has done this!

    My Ipod touch is frozen.  The screen shows only USB cable with arrow point to the word Itunes.  What is the problem?  This is the second touch I have had that has this same problem.  HELP!

    This time try restoring the iPod to factory defaults/new iPod instead of from backup.  You may have some corruption that is causing the problem and it may now be in the backup.  If the problem persists after restoring to factory defaults/new iPod. then you likely have a hardware problem and ana ppointment at the Genius Bar of an Apple store is in order.

  • This sign appeared in my account: "Your payment method was declined. Update your biiling info'. After adding new information about my others cards I see the same sign. Can't understand what the problem is and what should I do. Need help!!!

    This sign appeared in my account: "Your payment method was declined. Update your biiling info'. After adding new information about my others cards I see the same sign. Can't understand what the problem is and what should I do. Everything used to be good before.
    Do anyone know what I supposed to do in that situation?
    Really need help!
    Thanks in advance.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    On my Mac Mini, I keep getting this error message: "iCloud encountered an error while trying to connect to the server".  I don't have any problems with iCloud on my laptop / PC.  It works fine... Does anyone know what the problem could be?

    Your Mac must be on Lion (10.7) to run iCloud. Apple had to change the operating system to fully support it. Nevertheless, it is possible to get emails from iCloud without having Lion. Please tell me if this interests you.
    Anyways, here is the link to buy Lion (30 dollars, totally worth the upgrade ): http://itunes.apple.com/be/app/os-x-lion/id444303913?mt=12
    Franklin

  • What's the problem in this code

    import java.lang.reflect.*;
    import java.awt.*;
    class ABC
         public Integer i;
         ABC()
         public void setInt(Integer t)
              i = t;
    public class SampleName {
    public static void main(String[] args)
    ABC g1 = new ABC();
    g1.setInt(new Integer(10));
    printFieldNames(g1);
    static void printFieldNames(Object o) {
    Class c = o.getClass();
    Field[] publicFields = c.getDeclaredFields();
    for (int i = 0; i < publicFields.length; i++)
    try {
    Object ref = publicFields.get(c);
    System.out.println(" ref.toString() : " + ref.toString());
         }catch(Exception e)
                   e.printStackTrace();
    What is the problem with this code,at run time Iam getting this exception
    java.lang.IllegalArgumentException: object is not an instance of declaring class
    How can we get the value of field of an object

    Now it got this exception
    java.lang.IllegalAccessException
    at java.lang.reflect.Field.get(Native Method)That's strange - I didn't! ;-)
    Are you running exactly the same code as the code you posted (except for the one line I said to change)?

  • Please tell me what is the problem with this code

    Hai,
    Iam new to Swings. can any one tell what is the problem with this code. I cant see those controls on the frame. please give me the suggestions.
    I got the frame ,but the controls are not.
    this is the code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
    JButton b1;
    JLabel l1,l2;
    JPanel p1,p2;
    JTextField tf1;
    JPasswordField tf2;
    public ex2()
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setTitle("Another example");
    setSize(500,500);
    setVisible(true);
    b1=new JButton(" ok ");
    p1=new JPanel();
    p1.setLayout(new GridLayout(2,2));
    p2=new JPanel();
    p2.setLayout(new BorderLayout());
    l1=new JLabel("Name :");
    l2=new JLabel("Password:");
    tf1=new JTextField(15);
    tf2=new JPasswordField(15);
    Container con=getContentPane();
    con.add(p1);
    con.add(p2);
    public static void createAndShowGUI()
    ex2.setDefaultLookAndFeelDecorated(true);
    public static void main(String ar[])
    createAndShowGUI();
    new ex2();
    }

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ex2 extends JFrame
        JButton b1;
        JLabel l1,l2;
        JPanel p1,p2;
        JTextField tf1;
        JPasswordField tf2;
        public ex2()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setTitle("Another example");
            b1=new JButton(" ok ");
            p1=new JPanel();
            p1.add(b1);
            p2=new JPanel();
            p2.setLayout(new GridLayout(2,2));
            l1=new JLabel("Name :");
            l2=new JLabel("Password:");
            tf1=new JTextField(15);
            tf2=new JPasswordField(15);
            p2.add(l1);
            p2.add(tf1);
            p2.add(l2);
            p2.add(tf2);
            Container con=getContentPane();
            con.add(p1, BorderLayout.NORTH);
            con.add(p2, BorderLayout.CENTER);
            pack();
            setVisible(true);
        public static void createAndShowGUI()
            ex2.setDefaultLookAndFeelDecorated(true);
        public static void main(String ar[])
            createAndShowGUI();
            new ex2();
    }

  • Vector, what is the problem with this code?

    Vector, what is the problem with this code?
    63  private java.util.Vector data=new Vector();
    64  Vector aaaaa=new Vector();
    65   data.addElement(aaaaa);
    74  aaaaa.addElement(new String("Mary"));on compiling this code, the error is
    TableDemo.java:65: <identifier> expected
                    data.addElement(aaaaa);
                                   ^
    TableDemo.java:74: <identifier> expected
                    aaaaa.addElement(new String("Mary"));
                                    ^
    TableDemo.java:65: package data does not exist
                    data.addElement(aaaaa);
                        ^
    TableDemo.java:74: package aaaaa does not exist
                    aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?

    I can see many:
    1. i assume your code snip is inside a method. a local variable can not be declare private.
    2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
    3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
    Here is a sample that would compile...:
    public class QuickMain {
         public static void main(String[] args) {
              java.util.Vector data=new java.util.Vector();
              java.util.Vector aaaaa=new java.util.Vector();
              data.addElement(aaaaa);
              aaaaa.addElement(new String("Mary"));
    }

  • HT204003 if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    if i open passbook on iphone 5, it always say cannot connect to itunes, any fix from apple tech support? and whats the reason for this problem? why do we have to figure it out and not even apple can give answer??

    actually i found out how to fix it
    1 sign out of apple account
    2 close down passbook app
    3 change year to 2013
    4 reopen passbook and sign in at the button with your apple ID
    5 change the time to auto update and it should work from now on.
    this worked for me let me know if it work for you:)

Maybe you are looking for

  • How can I install CS6 without a disk drive?

    Hi there! I recently purchased the Creative Suite 6 Design and Web Premium addition. The sales person at the store assured me that despite not having a CD drive in my Macbook Pro there would be a way to install/download the suite with the product inf

  • Why does adobe flash not work in my firefox. i have down loaded it several times. it will work in explorer and chrome.

    why does adobe flash not work in my firefox. i have down loaded it several times. it will work in explorer and chrome.

  • Java.lang.NoClassDefFoundError: oracle/sql/Datum

    Greetings - When using the Oracle XML SQL Utilities is there some sort of restriction as to where the two jar files (oraclexmlsql.jar xmlparser.jar) are referenced from. The reason I ask is that when I deployed my servlet based application under WebS

  • Another way to format dates

    We were trying to retrieve a date from BC4J in a desirable format. We did look at the HOWTO that was posted, but found we would have to alter every date to a custom domain object in the BC4J layer. So we made a little utility method to help in any we

  • Flash Installed Templates

    I am a completely new user to flash. I have been following along from several training manuals. They all state when launching flash cs4, you can choose a new document based on an existing template. I see the template tab, but it only list "Advertisin