May be very basic problem

Just started Java,
I have created 2 classes and want to create instance of one class into another, but whenever i am trying to use
Class2 objcls = new Class2
inside Class1, I get error. Both classes r in same directory, what's the normal procedure so that I can create instance of Class2 inside Class1 and make use of Class2 methods ?
regards
Manisha

Thanks Annie,even my few last JDBC queries also seems to be working.
I could create instance of Class2 inside Class1, but facing another problem when trying to call the getConnection method of Class2 from Class1, it is giving me error saying "private access" - but method is declared as public.
This qry now I will post to "New to Java Technology" forum.
Once again thanks for yr help
regards
Manisha

Similar Messages

  • Jdev10.1.3.3/jdev 11 : very basic problem with h:commandButton

    Hello,
    I'm writing a manual training about standard JSF. I'm using Reference Implementation (RI) from Oracle and Jdev.
    I'm writing this very basic code for a binding method on the action property of a Command button (standard h:commandButton) :
    public String commandButton1_action() {
    System.out.println("commandButton1_action()");
    return null;
    The weird thing is that this code never executes...
    If I use an af:commandButton instead of h:commandButton, the same code works.
    Why the standard h:commandButton doesn't work ? (same thing with actionListener)
    If I replace the Oracle's JSF library by Sun implementation, obviously the standard h:commandButton and its binding action works...
    Have you got an explanation ?
    Thanks,
    Christophe,

    Frank,
    Thanks you very much. Your use case is excellent !
    Writing a JSF standard training manual is sometimes a bit boring but trying your wonderful Oracle components is so exciting !
    I guess that my problem comes that for my playtime I use Oracle parameters and components but I'm not always reading the documentation !
    I'm impatient to finish this training manual for having the time to read the full Oracle documentation when I try something !
    Bye!
    Christophe

  • Very basic problem with a Canvas and JScrollPane

    Ok, I'm making this software, with a lot of graphics, and as usual I start all classes alone to see them work and then I put them together in one nice JFrame with MenuBar and so on... but something strange (to me) happened when I made a JScrollPane with some of the Canvas because I couldn't make them for 1024x768 because of its contents.... so I add this JScrollPane to the TabbedPane as a new tab, so I have in my JFrame: the menubar, the tabbedpane and the canvas with a vertical scrollbar in the right, BUT, when I scroll down, the Canvas starts to scroll over the tabbedpane and the menubar!
    very wierd to me, I know one must try to not use scrollbars, but I really need this to work this way!
    thanks!!
    help!!
    Message was edited by:
    Reinaldo_Matte

    Ok, I'm making this software, with a lot of graphics,
    and as usual I start all classes alone to see them
    work and then I put them together in one nice JFrame
    with MenuBar and so on... but something strange (to
    me) happened when I made a JScrollPane with some of
    the Canvas because I couldn't make them for 1024x768
    because of its contents.... so I add this JScrollPane
    to the TabbedPane as a new tab, so I have in my
    JFrame: the menubar, the tabbedpane and the canvas
    with a vertical scrollbar in the right, BUT, when I
    scroll down, the Canvas starts to scroll over the
    tabbedpane and the menubar!
    very wierd to me, I know one must try to not use
    scrollbars, but I really need this to work this way!
    thanks!!
    help!!Don't mix heavyweight(AWT) components such as Canvas, with lightweight (Swing) components.
    See:
    http://java.sun.com/products/jfc/tsc/articles/mixing/
    and
    http://java.sun.com/products/jfc/tsc/articles/painting/index.html

  • Some very basic problem PLEASE HELP ME :(

    hi,
    im just new to EJB's and WebLogic. i have integrated JBuilderX with BEAweblogic 8.1 and then made simplest ejb.
    started the server.
    server successfuly startedthen made test client and while running test client i got following error...
    "EJBModule.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": Spaces in the classpath may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": C:\bea\jdk142_04\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar;" weblogic.appc -keepgenerated -forceGeneration -compiler C:/bea/jdk142_04/bin/javac "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar.jar" -output "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar"
    AND
    "EJBModule.jar": <Nov 3, 2004 10:47:15 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesBean that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 3, 2004 10:47:16 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesHome that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 3, 2004 10:47:16 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSes that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": [J2EE:160127]ERROR: Could not delete previous archive: C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar
    PLEASE HELP ME WAT TO DO....
    WAITING...
    :-(

    hi,
    i again made the whole thing with C:\project\weblogicsessproject
    i just simply made session bean and one method getMessage() which simply return String message.
    i compile that code and get following warning..
    "EjbsessModule.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    then i run the server from JBuilder which runs correctly and gives the message to client that...
    <Nov 10, 2004 1:09:41 PM GMT+05:00> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>
    AND ON RUNNING TEST CLIENT OF JBUILDER I GET NAMING EXCEPTIONS...
    C:\bea\jdk142_04\bin\javaw -classpath "C:\project\weblogicsessproject\classes;C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\bea\jdk142_04\jre\lib\charsets.jar;C:\bea\jdk142_04\jre\lib\ext\dnsns.jar;C:\bea\jdk142_04\jre\lib\ext\ldapsec.jar;C:\bea\jdk142_04\jre\lib\ext\localedata.jar;C:\bea\jdk142_04\jre\lib\ext\sunjce_provider.jar;C:\bea\jdk142_04\jre\lib\im\indicim.jar;C:\bea\jdk142_04\jre\lib\im\thaiim.jar;C:\bea\jdk142_04\jre\lib\jce.jar;C:\bea\jdk142_04\jre\lib\jsse.jar;C:\bea\jdk142_04\jre\lib\plugin.jar;C:\bea\jdk142_04\jre\lib\rt.jar;C:\bea\jdk142_04\jre\lib\sunrsasign.jar;C:\bea\jdk142_04\lib\dt.jar;C:\bea\jdk142_04\lib\htmlconverter.jar;C:\bea\jdk142_04\lib\tools.jar" weblogicsessproject.WebLogicSesTestClient1
    -- Initializing bean access.
    javax.naming.NameNotFoundException: Unable to resolve 'WebLogicSes' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'WebLogicSes' Resolved ]; remaining name 'WebLogicSes'
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    -- Failed initializing bean access.
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
         at weblogic.jndi.internal.ServerNamingNode_813_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:369)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:357)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at weblogicsessproject.WebLogicSesTestClient1.initialize(WebLogicSesTestClient1.java:34)
         at weblogicsessproject.WebLogicSesTestClient1.<init>(WebLogicSesTestClient1.java:19)
         at weblogicsessproject.WebLogicSesTestClient1.main(WebLogicSesTestClient1.java:270)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'WebLogicSes' Resolved
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:897)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:230)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    IM DOING ALL THAT WITH HELP OF BORLAND WHITE PAPERS...
    please help me
    waiting

  • Very basic doubt regarding transporting abap developments

    Hi All,
    It may be very basic doubt, But I need an answer.
    If we develop some objects in the development and transported them to quality and for some reason some errors occured and the for correction of the errors we created some more requests and ported them to Quality.
    the number of requests are say more than 15. and if we lost track of sequece of the requests to be ported to production.
    How can we overcome this problem?
    Can we create a new transport request by right clicking the package (of course all the objects are in only one package) , this will solve the purpose. I mean to say if we transport this single request to quality then to production, all the things will get transported?
    Please give your valuable inputs..
    Thanks and Regards
    KK

    Hi All,
    I really appreciate all your quick replys.
    My question is if we create a new request from the package in SE80, can we leave the old requests,
    That is if I transport a request say req 2 of domain for solving the dependency error of the previous request say req1 ( of data element ). and again transport req 1 after transporting req 2, this will solve the dependency problem. Like this if some dependency related issues are there and we lose track of sequence of request which needs to be transported, what could be the ideal solution?
    So I mean to ask that if I create a new request for the package in SE80, will all the developments will be included in the request or do we need to follow the sequence only?
    Thanks and regards
    KK

  • Can someone tell me the problem with this (very basic) code

    I know it's very basic but here goes
    public class MilesAndFurlongs
    // the constructor
    public MilesAndFurlongs (int Furlongs, int Miles)
    amountFurlongs = Furlongs;
    amountMiles = Miles;
    // method to add one to furlong
    public void increment()
    amount = (amount + 1);
    // method to print out total number of furlongs and miles
    public void displayLength()
    system.out.println("Furlongs: " + amountFurlongs);
    system.out.println("Miles: " + amountMiles);
    bluej says theres an illegal start of expression in displaylength()
    i know its going to be something stupid :D

    this is all of it updated...
    public class MilesAndFurlongs
    // the constructor
    public MilesAndFurlongs (int Furlongs, int Miles)
    amountFurlongs = Furlongs;
    amountMiles = Miles;
    // method to add one to furlong
    public void increment()
    amount = (amount + 1);
    // method to print out total number of furlongs and miles
    public void displayLength()
    system.out.println("Furlongs: " + amountFurlongs);
    system.out.println("Miles: " + amountMiles);
    Message was edited by:
    jaytabbmeister

  • Here's a very basic question about 2 TB external drives and Time Machine.

    Here's a very basic question about 2 TB external drives and Time Machine.
    Ihave a Mac Pro with a .75 TB and 1 TB drive.  It also has a 1 TB 2ndinternal drive.  My current external drive is too small so I'll begetting a 1.5 TB or 2 TB drive.
    Obviouslythe new larger 2 TB drive will backup everything on the Mac Prointernal drive with Time Machine.  But there will be 1 TB of space leftover going to waste.
    ShouldI partition the external drive so that the TM portion will be 1 TB andthe use the remaining extra partition for additional file backups withCarbon Copy?
    Thanks for any insights.
    I tried searching around on the new Apple discussion forum, but I find it much harder to use than the old forum I used to use.

    The problem with terabyte drives is that that a 3 TB is about as big as you can get without going into RAID territory. Ideally, a Time Machine drive should be 3 times as large as all the drives you are backing up. So, if you have 2.75 TB of internal storage, you should have 8 TB of Time Machine space.
    Of course, that is "should". If your TB drives are mostly empty, then you can get away with something 3 times the size of your used disk space. Just remember that you are pushing it. Linc is right about Time Machine needing space to work.
    It is unlikely that you have regular churn on 2.75 TB of disk. I suggest identifying which drives and folders have the most activity and excluding those drives and directories that don't change much. It would be better to archive the data that doesn't change often and keep it out of Time Machine. Then you may be able to get away with a 2 TB Time Machine drive.

  • Apple Banned me, because of a very weird problem with my "Factory Unlocked"

    Hi Everybody! Im having a very weird problem with my unlocked iphone 4.
    First of all, i would like to apologize because of my english, is not very good. My native language is Spanish.
    Well.. Im from Mexico, and here we can buy the iphone Unlocked on the Apple Online Store.
    Here's my problem. Apple has exchanged my iphone 3 times.
    I returned the iphone the first time because the screen was totally yellowish, other than that everything was working great!, that was by the end of September.
    On October 20th, i recieved my second iphone, and then a bigger problem started .
    Before i continue, let me give you this information: here in Mexico we have basically 3 cell phone companies
    1.- Telcel
    2.- Movistar
    3.- Unefon
    OK, now on october 20th, i recieved my second iphone, and then procced to activate via itunes using my UNEFON sim card (microsim).
    And every time i tried to activate it, only got this message onscreen:
    http://i148.photobucket.com/albums/s2/jorgelomeli/Screenshot2010-10-29at24915PM. png
    I though something was wrong with my brand new factory unlocked iphone 4.
    I have 4 more simcards from my brothers (they all had iphone 4 too)
    I tried telcel sim card, and i could activate my iphone. Then i insterted the Movistar microsim, and it worked too!! But then when i put the Unefon sim, the itunes logo inmediatly appears on the screen asking to activate on itunes, and when i tried that, the only response i got was the image above saying " The Simcard inserted on this iphone does not appear to be supported"
    Weird thing here is, that, when i put my Unefon sim card on my brothers iphone 4, it worked great! on all of them, internet 3g, phone, wireless , evrything!
    I called apple support, and they exchange the iphone for another one.
    I recieved the third iphone on October 29. Last friday. and guess what? SAME PROBLEM! different serial number, same week production (week 42) but exactly the same message on itunes.
    Very, very frustrated, i called apple again, and after 1 hour with thechnical support, they told me " We are sorry, but we can only offer you, your money back, NO MORE EXCHANGES FOR YOU"
    I said why?... i dont want my money back! i want an UNLOCKED iphone!, but they refuse to give me another iphone.
    When i asked techincal support, why my unefon sim card worked great on all three of my brothers iphone but not on mine, he just told me, "I really dont know, i guess they just got lucky" ****, this answer put all my trust i had on apple products for years, right on the garbage.
    Since they refused to give me another iphone, i accepted my money back, and inmediatly after i finished the call, i asked my brother to buy me one more time an iphone 4 using his name, and his credit card. Now i have to wait until November 8-12 to recieve my new iphone, hoping this time i get a REAL UNLOCKED iphone, and not a partially unlocked iphone.
    btw. i even went to Unefon costumer service and bought a new prepiad line, with a new microsim, just to be 100% sure that this problem is not because of the sim. And again didnt worked on my iphone, but it worked on any of my brothers iphone4.
    Serial numbers of the 3 iphones:
    79039C0U* (this one worked great with Unefon, only problem was yellow screen)
    85042GR4*
    81042FJB*
    What do you suggest me? any info would be really aprecciated
    FYI i also restore 4 times the last iphone and nothing seemed to work, i use 3 different computers, Macbook Pro, iMac, and an Hp with Windows 7, and the same message on all three computers.
    Wierd thing also, one of my brothers bougth an iphone 4 this last week too, but he bought the 16Gb not the 32Gb. His iphone production week is 42 also! and when i put my Unefon sim in his iphone works great!
    I dont know what else i can do, I just need to have faith that my new iphone coming this november will be real unlocked, but what if i'll recieve an iphone and then the same problem?? time for android? just kidding really guys, what can i do? anyone with similar problem like me? i dont wanna use Telcel or Movistar, i wanna use Unefon, and thats why i bought an Unlocked iphone
    btw: jailbreak is not a solution for me, because i always like to use legal software on all my apple products, and because of the warranty.

    According to http://support.apple.com/kb/HT1937, there are two official carriers in Mexico (Movistar and Telcel) and neither carrier offers an unlocked phone.

  • Adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem

    Hi,
      I got this message after importing about ten or so H.264 files that I encoded from Adobe media encoder.  "adobe encore the software that's used to decode the media is not available on this system. installing the correct decoders for the file you are working with may help correct the problem."
    The files we're shot with HD cameras.  Edited in Premiere Pro CS3.  I installed the update 3.0.1 with still the same error.
    I also tried a brand new project and after about ten or so files being imported into a timeline, the system crash.  I tried this twice....
        Thanks in Advance

    Hi Hunt,
           Here is the skinny.  A window base PC.  footage shot with HD sony HD cameras,  Project imported to Premiere CS3.  Once completed sent file to Adobe media encoder and render them as H.264 widescreen high Quality.  Imported them to Adobe Encore CS3.  After about ten files or so.  I got the error message.  Did all the basic trouble shoot like restarting the computer, got latest patch.  Even build a new test project with the same problem.
        Something else I read in the forums, is the encore will transcoded the project to Mpeg 2 anyway, after looking at my project I realized those few files were indeed untranscoded.  So it will be a double compression and I dont want that.  So, my new question is, what is H.264 good for ?????????? I was research that Mpeg 2 is a faster render but H.264 is a slower render but better quality.....
       what do you think ????
       Peter

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • VERY Basic Questions about Oracle eBusiness - what "languages" are used?

    Please forgive the very basic nature of this post- (I have been in systems (IT) for over 20 years, so I do have lots of systems experience, but no exposure to this particular software.)
    So here are the basic questions - I assume that much of the data base logic is written in PL/SQL, but what other tools / languages are the applications written in?
    (Oracle Forms, Oracle Reports, Java, C, something else?)
    With over 20 years and experience with a number of other packages, I can learn a great deal about an application by 1. Looking at the DB structures (charts), 2. looking into DB code (Packages, triggers, procedure, functions) and 3. Seeing the screen shots.
    None of my customers have had Oracle eBusiness - that have had home grown applications or other COTS/packages.
    can anyone suggest a place where an independent person can inexpensively get some exposure?
    My sincere thanks for any answers/suggestions. 

    Hi,
    Please refer to the following links for details about the different database releases and Oracle tools.
    Oracle Timeline
    http://www.oracle.com/timeline/index.html
    http://www.oracle.com/oramag/profit/07-may/p27anniv_timeline.pdf
    Oracle Corporation - Oracle FAQ
    http://www.orafaq.com/wiki/Oracle_Corporation
    Oracle E-Business Suite consists of Application/Database/Client tiers, you can find more details in [Oracle Applications Concepts|http://www.oracle.com/technology/documentation/applications.html] manual.
    Oracle Forms
    http://en.wikipedia.org/wiki/Oracle_Forms
    Regards,
    Hussein

  • VERY basic - how to decide what type of architectu​re to use?

    Forgive me if I'm breaking any forum rules with this post - I'm very new to this.
    I'm trying to write a Labview program to perform a functional test on an electronic product.  The test is fairly sequential - plug in the unit, apply a certain voltage, step up the voltage until the unit turns on, then turn on an electronic load, measure the load voltage, then step up the input voltage again, etc.  The power supply and electronic load that I'm using both have Labview drivers. 
    I'm brand new to Labview, and I have no resources in my company to help me out.  I have taken the Core 1 and 2 training class.  The problem is, I'm not really sure how to start.  Would this be a producer/consumer architecture?  A QSM?  I've been scouring these forums the past couple of days, but most of the discussions are advanced.  I don't understand all the acronyms.  A lot of the replies here assume you have some knowledge of Labview, and I don't.  Part of the problem is that I don't even know enough to ask a specific question, and that's why this post is so vague.
    I'm a competent PLC/HMI programmer but don't have any experience in other languages.
    I also want to be able to use variables for my limits so that I can easily change the pass/fail limits.  (For instance, I want the voltage and current pass/fail limits to be configurable from a "maintenance" screen on the Labview interface, but I don't know how to create multiple screens or password protect them).

    I have stated my opinion reagarding the QSM* design pattern previously and will not repeat it again here aside from "I avoid them like the plague".
    Architecture questions are good question but hardly "very basic" although some architectures can be very basic.
    I would recomend a State Machine that uses Action Engines to control your widgets.
    in this thread AND this thread I wrote extensively and included design documents for apps I developed. I invite you to look those over and start developing your own design that meets your needs.
    Ben
    * It is imposible to fully document all of the possible transitions of a QSM and since my application all are fully documented, the QSM is not an option. A Queued Message Handler on the other hand is different.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Very Basic Question c:out

    I can't seem to get a very simple "HelloWorld.jsp" file to work in Tomcat. I have the file helloworld.jsp with the following:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
         <title>helloworld.jsp</title>
    </head>
    <body>
         <c:set var="hello" value="Hello World!" />
         <c:out value='${hello}' />
    </body>
    </html>But when I view the page I see the output:
    ${hello}
    I thought this was very basic, but it doesn't work. I know that tomcat is running well, but the problem seems occur when I use a tag library. Otherwise the server and jsp works well. Thanks for any help.

    Thanks to you both, however, I am well aware of my option to use out.println..., but what I was trying to achieve is using the JSTL, and that is where I am having problems. Also, switching the order of my arguments in the taglib declaration made no difference. Anybody else have an idea on how to get the JSTL working?

  • Very basic loop question

    Hi everyone, I&acute;m somewhat new with programming and I have a very basic loop problem, that I can&acute;t solve.
    I have 3 ArrayLists:
    A has the project information, ordered by client, identified by a projectId, clientId and businessId
    B has the client information, ordered by business, identified by a clientId and businessId
    C has the business information, identified by a businessId.
    I need to show all the projects of a client, then the client information of a certain business, and at last the business information in a format like this:
    A -- Project1
    A -- Project2
    A -- Project3
    B -- Client1
    A -- Project4
    A -- Project 5
    A -- Project 6
    B -- Client2
    C -- Business1
    A -- Project7
    A -- Project8
    B -- Client3
    A -- Project9
    B -- Client4
    C -- Business2
    How should I program my loops? I've been trying different ways but everytime it doesn't print what I want. Help, please!

    OK, here's my code:
    for(int bussCounter= 0; bussCounter< bussArray.size(); bussCounter++)
       ValueObject bussVO = bussArray.get(bussCounter);
       String bussId = bussVO.getBussId();
       for (int clieCounter = 0; clieCounter < clieArray.size(); clieCounter++)
          ValueObject clieVO = clieArray.get(clieCounter);
          String clieId = clieVO.getClieId();
          String bussIdClie = clieVO.getBussId();
             for (int projCounter = 0; projCounter < projArray.size(); projCounter++)
                ValueObject projVO = projArray.get(projCounter );
                String clieIdProj = projVO .getClieId();
                String bussIdProy = projVO .getBussd();
                if (clieIdProy == clieId && bussIdProy == BussIdClie)
                   out.println("<tr>");
                   out.println("<td>" + projVO .getBussId() + "</td>");
                   out.println("<td>" + projVO .getClieId() + "</td>");
                   out.println("<td>" + projVO .getProjId() + "</td>");
                  out.println("<td>" + projVO .getTotal() + "</td>");
                  out.println("</tr>");
              if (bussIdClie == bussId)
                 out.println("<tr>");
                 out.println("<td>" + clieVO .getBussId() + "</td>");
                 out.println("<td>" + clieVO .getClieId() + "</td>");
                 out.println("<td>" + clieVO .getTotal() + "</td>");
                 out.println("</tr>");
       out.println("<tr>");
       out.println("<td>" + bussVO .getBussId() + "</td>");
       out.println("<td>" + projVO .getTotal() + "</td>");
       out.println("</tr>");
    }

  • Please, I am in a very big problem I designed the project by Adobe director And you test the software on the computers on Windows and works with high quality When I tested the project on Apple Macintosh operating system, Li appeared a number of problems

    Please, I am in a very big problem
    I designed the project by Adobe director
    And you test the software on the computers on Windows and works with high quality
    When I tested the project on Apple Macintosh operating system, Li appeared a number of problems and you dissolve a large part of them
    But I have a problem too big
    The project works on some devices and others show me messages mistakes and why chasm different operating system version
    Apple's Macintosh and these messages
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    others
    shokwave player error
    pleas what can i do

    Welcome to the Support Communities.
    m.raslan wrote:
    I tested the project on Apple Macintosh operating system
    Click on the  menu at top left of your screen, choose About This Mac and, in the panel that appears, note the Version no. in the form 10.n.n. Then update your product list so we can see what version of OS X you're running on the Mac — see this tutorial:
    Update your product list
    m.raslan wrote:
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    This Apple doc may help:
    OS X: About Gatekeeper
    m.raslan wrote:
    shokwave player error
    Is Shockwave Player installed?...
    http://www.adobe.com/shockwave/welcome/
    ...If not, get it here:
    http://get.adobe.com/shockwave/

Maybe you are looking for