Help, im a beginner.

Heres what i have... Im working on a website with a flash
.swf banner on the top that includes the menu. Everytime a menu
link is clicked that page loads up and the flash banner has to
reload(the banner is the same on every page). Is there anyway i can
make that banner load just once when you enter the website and stay
loaded while the site in navegated through?

i am also finding the solution ..if u get then pls reply me..

Similar Messages

  • Please help this clueless beginner with out.print syntax....

    Please help a clueless beginner out!!!! :-)
    I'm trying to build a dynamic table that functions as a calendar...(see http://www.oreilly.com/catalog/javacook/chapter/ch18.html for the basic idea and code structure).
    Here's the problem...I want to make each date inside of the table a hyperlink to a new page. I figured out how to create the hyperlinks, but I CAN'T figure out how to create hyperlinks that pass variables to a new page.
    Here's the code that works:
    // Fill in numbers for the day of month.
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp>");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    Here's the code that DOESN'T work....but can serve as pseudo-code for what I want to do:
    // Fill in numbers for the day of month.
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp?year=<%= yy %>&month=<%= months[mm] %>&date=<%= i %>>");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    <%= yy %>, <%= months[mm] %> are defined elsewhere in the code, and I want to use the current value of "i" from the loop.
    So, if everything works like I want, the table will get created, and if yy=2002 and mm=January, then the hyperlinks will look like:
    for day 1:
    "/newpage.jsp?year=2002&month=January&date=1"
    for day 2:
    "/newpage.jsp?year=2002&month=January&date=2"
    ...for day 31:
    "/newpage.jsp?year=2002&month=January&date=31"
    Can someone please point me in the right direction? Is it even possible to do what I want? (I assume it is...but maybe I can't use out.print???)
    Thanks!

    Hi. The expression "<%=some_Java_expression %>" is the JSP tag, that returns string value to HTML code. You should use it in HTML block like:
    <%String myname="Ivan"; %>
    <body>
    <p>My name is: <%=myname %></p>
    But You tried to use it inside the string expression and it generated some code like this:
    <a href="newpage.jsp?year=<%=yy%">...
    , didn't it?
    It invokes method out.print(" ... "), that prints this string value (but in the HTML block). So You tried to print something inside the print method. You should rewrite Your code like this:
    for (int i = 1; i <= daysInMonth; i++)
    out.print("<td>");
    out.print("<a href=newpage.jsp?year="+yy+"&month="+months[mm]+"&date="+i+">");
    out.print(i);
    out.print("</a>");
    out.print("</td>");
    I used the + operator to join Your code for link tag with the values (yy, months[mm], i.
    I hope it helps You,
    bye.</a>

  • Someone please help a complete beginner with Enterprise Manager!

    Question moved from
    Someone please help a complete beginner with Enterprise Manager!
    Please be gentle with me, I'm absolutely new to all this. We don't have a proper DBA and I've been tasked with the role. There is no-one else in the company with oracle experience and we don't have any support. Until now I've just used enterprise manager to manage the database, but now I have a problem..
    We are using Windows Server 2003 and Oracle 10g. I (stupidly) installed some network monitoring software on our server (PRTG network monitor). I almost immediately uninstalled it and all components/registry settings, but it seems to have thrown something out regards the OEM web interface.
    We used to access the OEM GUI through http://<hostname>:5500/em, but after installing/uninstalling the network monitor software the OEM webpage would only stay up for a few minutes, before saying 'Internet Explorer cannot display the webpage'. Restarting the DBconsole in services fixed the problem, but again, only for a few minutes.
    Spent all day yesterday looking at logfiles (they didn't make much sense to me), but seemed to be saying access was denied to the server ('actively denied it'). Lots of googling led me to believe I needed to reconfigure OEM by dropping and recreating it using:
    emctl stop dbconsole
    emca -deconfig dbcontrol db
    emca -repos recreate
    during this process I was asked for various passwords and a port number? I didn't even know what to use as the port number but guessed it was 5500 ?!? (probably wrong). As it didn't work I used the default port number that I found somewhere on the web.
    However now I am even deeper in the **** as this didn't work either, (some error about listnener?) and I have now lost the DBConsole in windows services. Obviously the OEM web console doesn't work at all now
    I would be eternally grateful for some patient, beginners help here..I can post whatever log files are necessary - I just need to know what I'm supposed to be doing and where to start..
    We used to log on to the OEM as 'SYSTEM', but nowhere in the process does it seem to ask me for the password for that (its asked me for SYS and SYSMAN)
    It could be that I'm going about this completely wrong, but with only a days experience in all this its pretty hard to know what I'm doing really!
    As you can tell I'm in way over my head..I just need OEM web interface to work!
    Thanks in advance

    ok, thanks to helpful comments from other people in my initial thread (posted in general database forum), after rebuilding the console/repository I now have EM up and running. But there are more problems..
    Firstly I have an error at the very top of the screen:
    java.lang.Exception: Number of responses does not match queries
    Also, the 'Host CPU' and 'Active Sessions' are blank and say 'No Data Is Currently Available' beneath them
    my emagent.trc file contains this error, repeating with different thread IDs every 30 seconds...
    (error = 10061)
    2012-04-30 17:19:28 Thread-4376 ERROR pingManager: nmepm_pingReposURL: Cannot connect to http://hostname:5500/em/upload/: retStatus=-1
    2012-04-30 17:19:59 Thread-1448 WARN http: snmehl_connect: connect failed to (hostname:5500): No connection could be made because the target machine actively refused it.
    Help!

  • CS3 - Classroom in a Book - Help for real beginner please!

    I'm literally only on lesson 4 of this course so please forgive my ignorance!  Using the Quick Selection Tool the course tells me to "  Choose Edit > Copy and Edit > Paste to paste the selection on a new layer."  I get a message which says "could not complete the Copy command because the selected area is empty".
    I'm sure there is a simple explanation but I just can't find it - please can anyone help this pure beginner from going entirely mad?
    Judy

    Is the layer that you want to copy from the active layer?  In the example below I used the quick selection tool to select some of the image (you can see the "marching ants" in the lower right corner), but since a new empty layer is active and not the layer I want to copy from, the error message you describe is displayed.

  • Help for a beginner

    I AM USING ORACLE DEVELOPER2000 R2.1 (STILL STUDYING IT)AND FIRST I INSTALLED ORACLE 8 PERSONAL EDITION AS A DATABASE ENGINE.
    THE PROPLEM IS THAT I HAD THE PROGRAM READ THE TABLES 'SUMMIT2' FOR THE USER : scott AND THE PASSWORD: tiger. THEN I MAKE IT READ THE TABLES ' SUMMIT2A ' FOR THE USER user1 AND THE PASSWORD : user1.
    THAT WAS USING system, manager. I CAN NOW LOG IN USING SCOTT BUT WHEN I LOG IN USING USER1 IT GIVES ME AN INVALID USER NAME AND PASSWORD.
    I AM USING WIN98. PLEASE HELP...

    you can also invoke any script with a ./<name_of_command>
    for example: ./orainst.sh
    There are also tons of manual pages on how the shell works
    just type: man<name of command you need help with>
    Kevin
    keith barron (guest) wrote:
    : stelar (guest) wrote:
    : : tanks for you help
    : : i have another question.
    : : why i login as root
    : : but cant run oratab.sh?????????????
    : : thanks your frined :stelar
    : : Jim Wartnick (guest) wrote:
    : : : stelar (guest) wrote:
    : : : : hi friends:
    : : : : i download oracle.but cant tar the 805ship.tar,
    : : : : but i cant find the install in orainst directory?
    : : : : why?
    : : : : help me . give me some advice.
    : : : : did i dont full download
    : : : : your friend:stelar
    : : : You should be looking for the file: "orainst" in the
    : : "orainst"
    : : : directory. This file is the executable to install Oracle
    : : 8.0.5.
    : : : It should be there.
    : You should include whatever messages you are getting whenever
    you
    : have a problem (or say there are no messages). My guess is that
    : you are not familiar w/ running a shell script. Are you
    : specifying "orainst.sh". If that doesn't work try (I'm not at
    my
    : linux machine so I'm going on memory) "/usr/bin/sh orainst.sh".
    : If it works, add "/usr/bin" to the path statement in your
    profile
    : (/root/.bash_profile).
    null

  • Help for a Beginner's Program

    Hello, I'm fairly new to the Java language. Recently I was writing a program revolving around the creation of classes and constructors...my code looks like this:
    import java.util.Scanner;
    class Money{
         private static int dollars, cents;
         Money(int dollars, int cents){
         Money(int dollars){
         Money(){
         static Money add(Money n,Money n2){
              return (n + n2);
         static Money minus(Money n,Money n2){
              return (n + n2);
         public static boolean equals(int m, int m2){
              if((m == dollars) && (m2 == cents));
                   return true;
         public String toString(){
              return ("Dollars = "+ getDollars() + " " + "Cents =" + getCents());
         public static int getDollars(){
              return (dollars);
         public static int getCents(){
              return (cents);
         public static void setDollars(int n){
              dollars = n;
         public static void setCents(int n2){
              cents = n2;
    class Program2_5{
         public static void main (String [] a) {
              Scanner kb= new Scanner (System.in);
              System.out.println ("Enter the amount of dollars");
              int d=kb.nextInt();
              System.out.println ("Enter the amount of cents");
              int c=kb.nextInt();
              Money.setDollars(d);
              Money.setCents(c);
              System.out.println (Money.toString());
    The main part of my code is just to simply make sure the methods actually work. When i go to compile my code I get three errors revolving around three specific lines.
    Error 1= {Operator + cannot be applied to Money, Money}
    *static Money add(Money n,Money n2){*+
    *     return (n n2);*+
    Error 2= {Same as Error 1}
    *static Money minus(Money n,Money n2){*+
    *     return (n n2);*+
    Error 3={non-static method toString() cannot be referenced from a static context}
    *public String toString(){*+
    *     return ("Dollars = " getDollars() + " " + "Cents =" + getCents());*+
    In order to fix Error 3 i tried to place static in front of String toString() but got an error about the Money String toString() cannot override the Object StringtoString()
    I have been working with this program for hours on and off and would really appreciate it if someone with more experience could help me...Thank You

    I think there are a few things that could help you out. Firstly, amounts are generally not looked at as dollars and cents separately. You can always go back and change it, but I'd code it a bit more like this:
    import java.util.Scanner;
    public class Money {
      private double amount;
      public Money() {
        this(0.0);
      public Money(double amount) {
        setAmount(amount);
      public void setAmount(double amount) {
        this.amount = amount;
      public double getAmount() {
        return(amount);
      public void add(double amount) {
        setAmount(getAmount()+amount);
      public void minus(double amount) {
        setAmount(getAmount()-amount);
      public boolean equals(double amount) {
        if (getAmount() == amount)
          return true;
        return false;
      public String toString() {
        return ("Amount = "+getAmount());
      public static void main (String [] argv) {
        Scanner kb= new Scanner (System.in);
        System.out.println("Enter initial amount");
        double a=kb.nextDouble();
        Money money = new Money(a);
        System.out.println(money.toString());
        System.out.println("Enter amount to add");
        a=kb.nextDouble();
        money.add(a);
        System.out.println(money.toString());
        System.out.println("Enter amount to subtract");
        a=kb.nextDouble();
        money.minus(a);
        System.out.println(money.toString());
        System.out.println("Enter amount to compare");
        a=kb.nextDouble();
        System.out.println(money.equals(a));
    }Hope it helps you out.

  • Help for a beginner in utl_file

    Hi,
    As I said I have just begun to learn pl/sql and looks like I am having a big trouble with it. I will attach the code I started with I know it does not do much and useful but can someone please help me run it? When I try to run it it gives the compilation error invalid directory path...
    CREATE OR REPLACE PROCEDURE encrypt_to_file IS
    /* Output variables to hold the result of the query: */
    a ALL_OBJECTS.OWNER%TYPE;
    b ALL_OBJECTS.OBJECT_NAME%TYPE;
    vlocation VARCHAR2(16) := 'OUTPUT';
    vopen_mode VARCHAR2(16) := 'w';
    F1 UTL_FILE.FILE_TYPE;
    /* Cursor declaration: */
    CURSOR TCursor IS
    SELECT OWNER, OBJECT_NAME
    FROM ALL_OBJECTS;
    BEGIN
    OPEN TCursor;
    F1 := utl_file.fopen( vlocation, 'DENEME.TXT', vopen_mode );
    LOOP
    /* Retrieve each row of the result of the above query
    into PL/SQL variables: */
    FETCH TCursor INTO a, b;
    /* If there are no more rows to fetch, exit the loop: */
    EXIT WHEN TCursor%NOTFOUND;
    END LOOP;
    UTL_FILE.FCLOSE(F1);
    /* Free cursor used by the query. */
    CLOSE TCursor;
    END encrypt_to_file;
    /

    OK, so someone has created a directory object for you.
    What do you mean by "I don t get the error with its last condition as procedure"? Are you saying that you no longer get the error when running your procedure?
    Are you looking in C:\Temp on the machine where Oracle is running for the file?
    In the code you posted, you are not writing anything to the file. Can you add a UTL_FILE.PUT (or PUT_LINE) to ensure that there is something in the file?
    Justin

  • Code bug help for a beginner!!

    Ok, I've written this code so far. Everything was fine until I got to the IF condition. When I try compiling it it tells me that the 'a' variable in the IF condition expression may not have been initialised, which I don't really understand as it's been declared at the start of the program and even used fine beforehand in the switch statements.
    Any ideas?
    Thanks for any help. Here's the code.
    import javax.swing.JOptionPane;
    public class LetterProgram {
    public static void main (String args[]) {
       String pickALet;
       String output;
       char letter;
       int guess;
       int a;
       pickALet = JOptionPane.showInputDialog ("please enter a lower case letter from (a to e)");
       output = "you selected a letter " + pickALet;
       letter = pickALet.charAt(0);
       switch (letter) {
       case 'a':
       a = 1;
       output = "you entered an a";
       break;
       case 'b':
       a = 2;
       output = "you entered a b";
       break;
       case 'c':
       a = 3;
       output = "you entered a c";
       break;
       case 'd':
       a = 4;
       output = "you entered a d";
       break;
       case 'e':
       a = 5;
       output = "you entered an e";
       break;
       default:
       output = "i did not recognise your entry";
       break;
       JOptionPane.showMessageDialog(null, output, "your letter", JOptionPane.INFORMATION_MESSAGE);
       guess =(int)(Math.random()*5 +1 ) ;
       System.out.println(guess);
       if (guess==a)
          System.out.println("The computer guessed the correct letter");
       else
          System.out.println("The computer guessed the letter incorrectly");
       System.exit(0);

    It's better to add a default label to the switch; otherwise for most cases you will be setting the value twice, and it makes the intent of 'none of the above' clearer.
    Pete

  • Report Painter Help for a Beginner

    Hi All
    I am very new to FI and even SAP - can any one help with the tips for creating a report through Report Painter- I have gone through the online helps but not able to pick up, please help to create a simple G/L Report or some other reports for learning purpose
    Advance thanks for the help
    Thanks again
    Srini

    Hi all
    Please note I have a problem, my client want to create a same cost centers for all company codes (8 company codes) in one controlling area (all company codes linked with one controlling area), but the cost center master data is not accepting the same cost center for the different company code in the same controlling area- client don't want to create a new  cost centers since they are using the same cost centers for years in Peoplesoft, how to tackle this problem- anyway we can suppress the company code in the cost center master data?- &  if we supperss also the final report will be Ok?- Pls help
    Thanks
    Srini

  • Help for a beginner creating a 2d image-processing suite in LabVIEW.

    I am a final year student and currently seeking any advice from experienced engineers with regard to my project.
    The project is to create a LabVIEW based image-processing suite, which would be able to import 2d arrays of data from microscope, plus other information (scaling, date/time, sample info) and perform the following functions:
    Visualisation – 2d & 3d, Cross-section Profile Analysis, Histogram, Fourier Transform, Auto-Correlation, Copy, Print, Save & Export, Colour Palette Edit, Zoom, Manipulate.
    Having not used LabView previously, any examples or information you may have would be of extreme use,
    Thank you in advance for any help you can give me,

    Sam,
    Most of these tools are readily available in LabVIEW when you purchase the IMAQ Vision toolkit. You just need to learn how to use them and set them up. In your case, I would strongly recommend starting with Vision Builder. You can learn how to use a number of these tools, and it may actually be sufficient for your project without writing any code. It can generate LabVIEW code as well, so it would get you started on your program.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Help with JNLP - Beginner with JNLP

    Hey guys, I am new here and was hoping someone might be able to help me understand what's going on with this JNLP hocus pocus.
    Basically, I'm just trying to deploy a very simple applet using a .jnlp file. I created the applet in Eclipse and it runs fine in the IDE. I set up my jnlp and html files pretty much exactly how the tutorial on Sun's website suggests, but my stupidity seems to prevent the applet from working inside a browser.
    The files I'm using are all in the same folder. They are:
    HiddenPrizePage.html
    HiddenPrizeTask.jar
    HiddenPrizeApplet.jnlp
    I created my jar using Export in Eclipse with no compression, with the "Export generated class files and resources" checkbox selected. The images folder contains all images used by the applet. The images folder is inside of src. The program is structured so that the logic and drawing is done by HiddenPrizePanel.java and the applet itself is inside HiddenPrizeApplet.java.
    MY HTML FILE:
    <html>
    <body>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    var attributes = { code:'HiddenPrizeApplet', width:800, height:600} ;
    var parameters = {jnlp_href: 'HiddenPrizeApplet.jnlp'} ;
    deployJava.runApplet(attributes, parameters, '1.6');
    </script>
    </body>
    </html>
    MY JNLP FILE:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="" href="">
    <information>
    <title>Hidden Prize Task</title>
    <vendor>Clinical Neuroscience Lab at OSU</vendor>
    </information>
    <resources>
    <!-- Application Resources -->
    <j2se version="1.6+"
    href="http://java.sun.com/products/autodl/j2se" />
    <jar href="HiddenPrizeTask.jar" main="true" />
    </resources>
    <applet-desc
    name="Hidden Prize Task Applet"
    main-class="HiddenPrizeApplet"
    width="800"
    height="600">
    </applet-desc>
    <update check="background"/>
    </jnlp>
    When I try to run the applet inside of a browser, nothing happens. I can right-click the blank space on the page where the applet should theoretically be appearing and choose "Open Java Console" to check for error messages, so I did, and it says:
    load: class components.HiddenPrizeApplet not found.
    java.lang.ClassNotFoundException: components.HiddenPrizeApplet
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: components.HiddenPrizeApplet
    load: class components.HiddenPrizeApplet not found.
    java.lang.ClassNotFoundException: components.HiddenPrizeApplet
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: components.HiddenPrizeApplet
    Can anyone help me figure out what I'm doing wrong? I don't understand why it says "components." in front of "HiddenPrizeApplet" whenever HPA is referenced, since I never refer to HPA as "components.HiddenPrizeApplet" in my jnlp or html files, and I certainly didn't put the java files or the class files or any other kinds of files in a folder or package named "components" to my knowledge. Thanks for any help you can provide.

    What is the copy/pasted lines in HPA between the first line up to & including..
    public class HiddenPrizeApplet extends (J)Applet..?
    BTW - when posting code or code snippets, HTML/XML(/JNLP) or input/output. please use the code tags as described on the 'sticky post' at the top of the forum thread listing. You can still edit your original post to do that, but before you do so, it would pay to run the JNLP through JaNeLA and fix any report in the output list that has a red high light. The JNLP as it stands is invalid in at least one respect. But don't take my word for it, JaNeLA validates against an XSD that is better than Oracle's DTD. I am confident in saying that, because I was involved with the development of the XSD ..& JaNeLA. ;)

  • Help for a beginner please -using iTunes

    Using iTunes for the first time, I buy and download an item. It`s a piece of music that lasts 55 mins.OK.The stuff comes down the line, and I can make it play on my scratchy screen-speakers.
    I then try to copy it to a DVD with my DVD writer. I`m warned it may take up to an hour. No indication of progress is given. After a few minutes there`s a xylophone-bong. Maybe it means the process failed. Maybe succeeded. I don`t know. No indication of either.The disc won`t play so I suppose I failed.
    A make a second try, on to a CD. This time no Burn - button appears on the screen, so I`m stuck straight away. Is Apple stopping me making a second copy, so I have to spend another ten quid downloading the thing again ? A pretty severe penalty for a mistake !
    Can anyone put me right, and maybe direct me to an elementary tutorial ?
    Eigenblog
    HP T3640 desktop   Windows XP  

    Making a DVD only creates a backup copy of a track. It does not create a disk that can be played in any other player. If you want to create a disk that can be played in other players, you need to burn an audio CD, so check your iTunes -> Advanced -> Burning preference and make sure it's set to Audio CD. Then you need to put the track into a playlist. It can be the only track in the playlist, but it must be in a playlist before it will burn.
    For more information, this tutorial may help:
    iTunes: Burn Your Music To CD
    Hope this helps.

  • Please help me. im beginner. How to start OracleOraDb10g_home1iSQL*Plus?

    My name is Doil
    im korean
    at now,
    im installing oracle 10g
    so, i hava a problem
    ComputerManagement -> service
    OracleOraDb10g_home1iSQL*Plus is continuing starting..
    um.. it indicate "starting"
    it mean... OracleOraDb10g_home1iSQL*Plus status is only starting... not started..
    please help me..

    This is the XE forum, isqlplus isn't part of an XE install, sorry :(
    Can point you to the 10g docs for isqlplus, for Windows I'm not positive a command line isqlplusctl stop will work to ensure its shut down- try stopping the service and make sure the port it wants to use is available-
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch2.htm#CIHFDCJI

  • Help with some beginner code

    Hello, I am new to java and I need a bit of help with some code that I'm writing. here is the code:
    import javax.swing.*;
    public class Test{
         public static void main(String[] args){
         JOptionPane.showMessageDialog(null,"We will now build a block with *'s","Block",1);
         String input=JOptionPane.showInputDialog(null,"Type a number: ","Number",3);
         int number=Integer.parseInt(input);
         int count=0; int count2=0;
         for(count2=0; count2<number; count2++){
              for(count=0; count<number; count++){
              System.out.print("* ");
    System.exit(0);
    }Now, all I need is to build a block of *'s with the number that the user inputs. With the code that I wrote I get the correct number of *'s but not in the form of a block. They just print out in a straight line. I know this is a very simple task but could someone please help me out? What do I need to modify in my code so that the *'s print out arranged as a block like so:
    **********

    Your code only uses the print method which prints without a carriage return/line feed. So you need to add a line of code to print a carriage return/line feed. Where? well that is your task to work out.

  • Help with unhappy beginner code...

    Hello Java gurus,
    I'm learning java and one of my class assignments is the old "mortgage calculator"... I made code up, compiled okay, but it won't execute. Gives me all sorts of errors. I THINK it's to do with the double vs int vs float... Please help!!! I've been playing with this and can't figure whats erroring. I know its prob something simple so please explain when you write back what I'm not understanding... Thank you! -nika
    Assignment:
    The monthly payment on mortgage loan of L dollars, at a rate of interest r is given by
    Monthly payment = []
    Where N is the number of years of mortgage. Write a program to find the monthly
    payment for 30 years, for principals from $100,000 through $200,000(with increments
    of $20,000) and interest rates of 6% through 10% (with increments of 0.5%). Print
    monthly payment as a whole number (rounded off).
    The output must be a neat table, similar to the following (your answers may be slightly
    different because of rounding off).
    Principal 6% 6.5% 7% 7.5% 8% 8.5% 9% 9.5% 10%
    100000 600 632 665 699 733 768 804 840 877
    120000 719 758 798 839 880 922 965 1009 1053
    140000 � � � � � � � � �
    160000 � � � � � � � � �
    180000 � � � � � � � � �
    200000 � � � � � � � � �
    Hint: Use the following idea to compute (1 + r/12)12N
    double temp = 1+r/12;
    double temp1 = 1;
    for (int i = 1; i<=12*N;i++)
    temp1 = temp1*temp;
    The final formula now becomes:
    double mp = (L*(r/12)*temp1)/(temp1-1);
    MY CODE:
    import java.util.*;
    class MortgagePmt {
    public static void main(String args[])     {
    int n = 30;     
    System.out.println("Mortgage Monthly Payment");
    System.out.println("Principal 6.0% 6.5% 7.0% 7.5% 8.0% 8.5% 9.0% 9.5% 10.0% ");
    for (int l = 100000; l<=200000; l=l+20000){
    System.out.printf("%9d ",l);
    for(double r = 6.0; r<=10.0; r=r+0.5){
    double temp = 1+r%12;
    double temp1 = 1;
    for (int i = 1; i<=12*n;i++)
    temp1 = temp1*temp;
    double mp = (l*(r%12)*(temp1))/(temp1 - 1);
    System.out.printf("%5.0f", mp);
    System.out.println("");
    }

    You really need to do an analysis on your algo... there is NO WAY that it is correct.
    MY CODE:
    import java.util.*;
    class MortgagePmt {
    public static void main(String args[])     {
    int n = 30;     
    System.out.println("Mortgage Monthly Payment");
    System.out.println("Principal 6.0% 6.5% 7.0% 7.5% 8.0% 8.5% 9.0% 9.5% 10.0% ");
    for (int l = 100000; l<=200000; l=l+20000){
    System.out.printf("%9d ",l);
    for(double r = 6.0; r<=10.0; r=r+0.5){
    double temp = 1+r%12;
    double temp1 = 1;What is this following little section for? temp1 comes out of there at 1.7x10^304... err, no way that is right. I do not believe there is that much anything in the world, let alone money.
    for (int i = 1; i<=12*n;i++)
    temp1 = temp1*temp;
    double mp = (l*(r%12)*(temp1))/(temp1 - 1);
    System.out.printf("%5.0f", mp);
    System.out.println("");
    }One of the best things you can do at this point, if it's not thee very best thing, is to get your debugger out and find out how to use it. Your code ran as you posted it, but your algorithm is not right and numbers you are calculating do not even make sense--all of them output as NaN (not a number). Take each feature of your assignment and code it 1 piece at a time tracing each seeing that the numbers you calculate make sense, and as you get that piece to work, move on to the next feature of your assignment. This way you don't write out a bunch of none tested code that you don't know what it is doing.
    Throwing out code that you think is a solution that you do not know what it does and have no hope of fixing is no better than no solution at all--IMO it is far worse: you'll work attempting to fix it, not knowing what it is doing and all the time all you are building is your frustration.
    (BTW: don't think I'm singling you out and speaking harshly to you--I've been there too. Sometimes it's better to just start over. Get a handle on what needs to be done. Get a working pencil and paper model, then describe the process in an algorithm, then code from that algorithm. Implement in steps and make sure each step works before moving on to the next. There is no magic in the computer--it won't make a bad process good--on the contrary it usually makes bad things worse, you have to design a good process first to implement a good process.)

  • Need help with tables beginner........

    can some one help me straightned out these errors, am trying to teach myself some sql for and am using my buddies school books. this is the problem.
    Create the following relations in SQLPLUS. The columns involved in composing the primary key for each table are marked with a *.
    * FACULTY (*fss_num varchar2(20), name varchar2(20), address varchar2(20), age number,salary number(10,2))
    * ATTENDS (*sss_num varchar2(20), *c_num number, sec_num number)
    * SECTION (*c_num number,*sec_num number,fss_num varchar2(20))
    * STUDENT (*sss_num varchar2(20), name varchar2(20), address varchar2(20), age number)
    * COURSE (*c_num number, cdesc varchar2(20), credits number, size_limit number)
    My solution: seems right am following another example but i get various errors.
    DROP TABLE ATTENDS;
    DROP TABLE STUDENT;
    DROP TABLE SECTION;
    DROP TABLE COURSE;
    DROP TABLE FACULTY;
    CREATE TABLE FACULTY
         (FSS_NUM      VARCHAR2(20) NOT NULL,
         NAME          VARCHAR2(20) NOT NULL,
         ADDRESS      VARCHAR2(20),
         AGE           NUMBER,
         SALARY           NUMBER(10,2),
         CONSTRAINT FACULTY_PK PRIMARY KEY (FSS_NUM));
    CREATE TABLE COURSE
         (C_NUM           NUMBER NOT NULL,
         CDESC           VARCHAR2(20),
         CREDITS      NUMBER,
         SIZE_LIMIT      NUMBER,
         CONSTRAINT COURSE_PK PRIMARY KEY (C_NUM));
    CREATE TABLE STUDENT
         (SSS_NUM      VARCHAR2(20) NOT NULL,
         NAME           VARCHAR2(20) NOT NULL,
         ADDRESS      VARCHAR2(20),
         AGE           NUMBER,
         CONSTRAINT STUDENT_PK PRIMARY KEY (SSS_NUM));
    CREATE TABLE ATTENDS
         (SSS_NUM      VARCHAR2(20) NOT NULL,
         C_NUM           NUMBER NOT NULL,
         SEC_NUM      NUMBER NOT NULL,
         CONSTRAINT ATTENDS_PK PRIMARY KEY (SSS_NUM, C_NUM),
         CONSTRAINT ATTENDS_FK1 FOREIGN KEY (SSS_NUM) REFERENCES STUDENT(SSS_NUM),
         CONSTRAINT ATTENDS_FK2 FOREIGN KEY (C_NUM) REFERENCES COURSE(C_NUM));
    CREATE TABLE SECTION
         (C_NUM           NUMBER NOT NULL,
         SEC_NUM      NUMBER NOT NULL,
         FSS_NUM      VARCHAR2(20) NOT NULL,
         CONSTRAINT SECTION_PK PRIMARY KEY (C_NUM, SEC_NUM),
         CONSTRAINT SECTION_FK1 FOREIGN KEY (C_NUM) REFERENCES COURSE(C_NUM));

    Hi,
    If you want to give Primary Key constraint for a column, no need to create NOT NULL constraint again for the same column.
    If you create Primary Key constraint for a composite column, only possible to create Foreign Key on the same composite column.
    Mistake.....if PRIMARY KEY(SSS_NUM, C_NUM), we should not either FOREIGN KEY(SSS_NUM) or FOREIGN KEY(C_NUM). We should create only like FOREIGN KEY(SSS_NUM, C_NUM).
    Regards,
    Sailaja

Maybe you are looking for

  • Merging Different Files Using XI

    Hi All, I hav a scenrio where i have to merger 'n' no of files into a single file and push it to some location on the FTP. <u><b>Details:</b></u>: <u><b>Source</b></u> <u><i>File1</i></u> abc def ghi <u><i>File2</i></u>: xxx yyy zzz <u><i>File3</i></

  • Export in 16:9

    Hi, is there a way to eport my slideshow in 16:9 or is the maximum 720*480 ?

  • Printing a Date Parameter

    Post Author: RLCrist CA Forum: General Is there a way to have the date parameter on a report actually print on the report itself?  For example,  if my paramater is 2008-1-1 through 2008-1-2, I'd like that to show up on the report. Any help would be a

  • SAPKCCD46C Command file for customer export

    Hi, We installed a new system 46C on Win2000/Oracle. then created a client. Then we import all customer develement classes in our PROD system to new system. Aim is to construct new system using client export import from our production system. during

  • Word to XML conversion

    Hi, I need a Java API to convert a word document to XML format. I don't want to use the Word Document "Save As" feature for converting the document to XML file. Please give me suggestions. Thanks in advance, Sapna