Counting Loop I Think: HELP!

Experience .... Java Beginner: I want to write a few lines where I can count down using a loop. Example: The System.out.println would be like "I have 100 dimes". Using the console (I believe) I would have a User type in a number between 1 and 100. We'll say the User types in 20 and presses Enter. The printout that the User would see would be this:
I have 100 dimes
I have 99 dimes
I have 98 dimes
I have 97 dimes .... and so on down to "I have 80 dimes".
I'm really lost as to even know where to start. Can anyone help? THANKS.

You can do it in both ways.
1) Getting the input passed as arguments.
e.g. java DimeTest 20
public class DimeTest {
    public static void main(String args[]) {
     int num = 0;
     try {
          if(args[0] == null) throw new Exception();
          num = Integer.parseInt(args[0]);
     } catch (Exception e) {
          System.out.println("Usage: java DimeTest [number]");
          System.out.println("e.g. java DimeTest 20");
          System.exit(0);
     int j = 100 - num;
     for(int i = 100; i >= j; i --) {
          System.out.println("I have " + i + " dimes");
}2) Get the input from the console.
import java.io.*;
public class DimeTest2 {
    public static void main(String args[]) throws IOException {
     BufferedReader reader = new BufferedReader(
                         new InputStreamReader(System.in)
     System.out.print("Enter a number:");
     String input = reader.readLine();
     int num = 0;
     try {
          num = Integer.parseInt(input);
     } catch(NumberFormatException e) {
          System.out.println("Please enter a number!");
          System.exit(0);
     int j = 100 - num;
     for(int i = 100; i >= j; i --) {
          System.out.println("I have " + i + " dimes");
}Good Luck!

Similar Messages

  • FOR i IN 1..htmldb_application.g_f01.COUNT LOOP

    Hello,
    I have created a report query as below
    SELECT
    ROWNUM,
    x.household_org_affil_id,
    x.hoaf_effective_date,
    x.hoaf_terminate_date,
    x.partner_organization,
    x.primary_type,
    x.relationship_type ,
    x.affiliated_person_id,
    x.chksum,
    x.del
    FROM (SELECT
    htmldb_item.hidden(1,household_org_affil_id) household_org_affil_id,
    wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
    wwv_flow_item.date_popup(3,NULL,vbhoaf.terminate_date) hoaf_terminate_date,
    htmldb_item.display_and_save(4,partner_common_name) partner_organization,
    htmldb_item.HIDDEN(5,affiliated_person_id) affiliated_person_id,
    htmldb_item.display_and_save(6,primary_type) primary_type,
    htmldb_item.display_and_save(7,relationship_type_dis) relationship_type,
    htmldb_item.md5_checksum(
    household_org_affil_id,
    vbhoaf.effective_date,
    vbhoaf.terminate_date) chksum,
    htmldb_item.checkbox(50, household_org_affil_id, (case when vbhoaf.terminate_date is null then 'DISABLED' else NULL end)) del
    FROM vb_household_org_affil vbhoaf
    JOIN vb_household_membership vbhm
    ON vbhoaf.family_household_id = vbhm.family_household_id
    JOIN vb_partner_organization vbpo
    ON vbpo.partner_organization_id = vbhoaf.partner_organization_id
    WHERE :P1580_AFFILIATED_PERSON_ID IS NOT NULL
    AND vbhm.affiliated_person_id = :P1580_AFFILIATED_PERSON_ID) x
    But if I am trying to loop as below
    FOR i IN 1 .. htmldb_application.g_f01.COUNT LOOP
    I am getting an error 'no data found' as like the array g_f01 does not exist. But If I am refering g_f02, that is ok but that is not the one I want.
    Can you anyone please help me to find what is wrong.
    Thanks in advance,
    Nattu

    Hello Nattu,
    Although it seems that your query is working in the way you wrote it, I believe it makes more sense (at least for me) that the use of the APEX API will be within the main query and not within the sub-query.
    In your case, as you created the household_org_affil_id column as hidden one, you probably don’t want to display it. Did you uncheck the “Show” attribute for this column? In this case the column don’t get to be POSTed, and the corresponding G_Fxx array will be empty.
    In order to correct that, and still get a presentable report, you need to concatenate the hidden column with a column you are displaying. This way the hidden values will be populated to the corresponding G_Fxx array. You can try something like this:
    SELECT ROWNUM
    htmldb_item.hidden(1,household_org_affil_id) ||
    wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
    from (select  x.hoaf_effective_date, . . .
               from vb_household_org_affil vbhoaf x
               where . . . )
    @ ines:
    There isn’t any problem to use G_F01 to accommodate a hidden column. The example in the documentation is doing just that - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#sthref2857 .
    Hope this helps,
    Arie.

  • P6N SLI Platinum – endless reboot loop. Need help!

    P6N SLI Platinum – endless reboot loop. Need help!
    Configuration;
    Windows XP Pro, SP-2
       On old hard drive (Maxtor) I installed in the new case
    OCZ GameXStream OCZ700GXSSLI ATX12V 700W Power Supply
    MSI P6N SLI Platinum
    EVGA 256-P2-N550-T2 7600GT
    INTEL Dual Core E4400
    MEMORY tried two different ones;
       GeIL Esoteria 2GB (2 x 1GB) 240-Pin DDR2 SDRAM DDR2 800 (PC2 6400)
       Kingston Value Ram 1GB 667MH (of course tried in different slots, stick @ time)
    NEC DVD player/burner
    Old Maxtor IDE drive W/OS (I have new Seagate serial but won’t install it until I get everything else running.
    Computer goes in an endless reboot cycle. First, showing a black screen with small parallel white hash marks. Can pull up Bios but that’s as far as I can go. At first, I thought the high end Geil memory might be at fault. But after installing the more generic Kingston I get the same looping.
    In Bios, it is reading all my hardware; CPU, memory, hard drives, temperatures, voltages, etc. the only thing it doesn’t specifically show is the Evga video card. I don’t know if there is really any place it would show except in Hardware Profile.
    One other thing, Bios is showing the NEC as the Primary IDE Master and the Maxtor as the Secondary IDE master (although I have tried it both ways). I generally like to boot first from my DVD then go to hard drive.
    I don’t know where to go from here. Can anyone give me some suggestions?
    Thanks,
    Clickman

    two replies;
    To Vernonion
    With JUST new Sata drive & DVD I get message "Reboot & select proper boot device or insert boot media in selected boot device & press a key" in other words, install windows. No flashing anything.
    To Maesus
    Yes, have tried boot sequence every which way  . DVD functions as I ran Memtest for 4 hours last night.
    I think I will use the information mentioned in the 3 links V gave me earlier to "repair" the OS on my old Maxtor drive. It is partitioned with OS in one area by itself, docs in another partition, programs another, etc. so I wouldn't lose any work. At worst, I might have to reinstall some programs. At best, I accomplish what I set out to do.
    Many thanks,
    Clickman

  • I'm trying to setup a printer go wireless through my airport extreme, but every time I try to print the printing file gets paused. I'm in loop. PLEASE HELP! (The printer is a Brother 7020  monochrome)

    I'm trying to setup a printer go wireless through my airport extreme, but every time I try to print the printing file gets paused. I'm in loop. PLEASE HELP! (The printer is a Brother 7020  monochrome)

    I had the exact same problem
    It turns out I was using a 20 foot USB cable between the printer and the Airport Extreme and the signal had become to weak to work. Try using nothing more than a 6 foot cable or try a new cable

  • Im stuck in a loop can any1 help

    im stuck in a loop can any1 help me

    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    http://www.westwind.com/reference/os-x/commandline/single-user.html
    Any change?

  • HT6065 Since latest update i have a login loop, can someone help?

    Since latest update i have a login loop, can someone help?

    Hold down the Power button for 5-10 seconds until the computer shuts down. Restart. Report what state the computer is in at that time.

  • For loop prob - PLEASE HELP!

    I am having problems with a for loop. This for loop is nested within some other for loop. the problem I'm having is that the for loop executes once and then exits to execute the outer for loop. my initial reaction was that my condition (in the for loop ) was false the second time round thus resulting in the exit. I'm usually told to paste some code so i'll do that:
    for (int i=0; i<row.size(); ++i){
      for (int all = 1; all < row.size();all++){
       try{          
         for (int k=0; k< column.size();  k++){
         System.out.println(" column size " + column.size());
         Long longObject1 = (Long)((Vector)row.get(i)).get(k);
         System.out.println(" getting" + longObject1);
    }                              �
         for (int k=0; k< column.size(); k++){ is the loop causing me problems.  column.size() evaluates to 2 so what is the problem?

    No I don't think there is another thread effecting column -I have even placed a Println to show what the value of column is. At present the value of column is 2 so the for loop should execute twice.
    I have a catch block which catches ClassCastException. The second element in row is not null. Furthermore, the size of count is 2 so the for loop should execute twice.
    yes the first element in row is another vector. (Row is a vector of vectors). I've looked at the other suggestions too but even after considering these i am left with the same problem. Any other suggestions? I could do with all the help I can get. Thanks

  • Loops and Arrays help

    Hi,
    I'm a freshman in college and new to java. I am completely lost and really need help with a current assignment. Here are the instructions given by my teacher...
    Building on provided code:
    Loops and Arrays
    Tracking Sales
    Files Main.java and Sales.java contain a Java application that prompts for and reads in the sales for each of 5 salespeople in a company. Files Main.java and Sales.java can be found here http://www.ecst.csuchico.edu/~amk/foo/csci111/labs/lab6N/Main.java
    and here http://www.ecst.csuchico.edu/~amk/foo/csci111/labs/lab6N/Sales.java It then prints out the id and amount of sales for each salesperson and the total sales. Study the code, then compile and run the program to see how it works. Now modify the program as follows:
    1. (1 pts) Compute and print the average sale. (You can compute this directly from the total; no new loop is necessary.)
    2. (2 pts) Find and print the maximum sale. Print both the id of the salesperson with the max sale and the amount of the sale, e.g., "Salesperson 3 had the highest sale with $4500." Note that you don't necessarily need another loop for this; you can get it in the same loop where the values are read and the sum is computed.
    3. (2 pts) Do the same for the minimum sale.
    4. (6 pts) After the list, sum, average, max and min have been printed, ask the user to enter a value. Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered.
    5. (2 pts) The salespeople are objecting to having an id of 0-no one wants that designation. Modify your program so that the ids run from 1-5 instead of 0-4. Do not modify the array-just make the information for salesperson 1 reside in array location 0, and so on.
    6. (8 pts) Instead of always reading in 5 sales amounts, allow the user to provide the number of sales people and then create an array that is just the right size. The program can then proceed as before. You should do this two ways:
    1. at the beginning ask the user (via a prompt) for the number of sales people and then create the new array
    2. you should also allow the user to input this as a program argument (which indicates a new Constructor and hence changes to both Main and Sales). You may want to see some notes.
    7. (4 pts) Create javadocs and an object model for the lab
    You should organize your code so that it is easily readable and provides appropriate methods for appropriate tasks. Generally, variables should have local (method) scope if not needed by multiple methods. If many methods need a variable, it should be an Instance Variable so you do not have to pass it around to methods.
    You must create the working application and a web page to provide the applications information (i.e., a page with links to the source code, the javadoc and an object model) to get full credit. You can use the example.html's from the last two labs to help you remember how to do this.
    I'm not asking for someone to do this assignment for me...I'm just hoping there is someone out there patient and kind enough to maybe give me a step by step of what to do or how to get started, because I am completely lost from the beginning of #1 in the instructions.
    Any help would be much appreciated! Thank you!
    Message was edited by:
    Scott_010
    Message was edited by:
    Scott_010

    First ask the person who gave this asignment as to why do you require two classes for this , you can have only the Sales.java class with main method in it . Anyways.
    Let Main.java have a main method which instanciates a public class Sales and calls a method named say readVal() in Sales class.
    In the readVal method of sales class define two arrays i.e ids and sales. Start prompting the user for inputting the id and sales and with user inputting values keep storing it in the respective arrays .. Limit this reading to just 5 i.e only 5 salesPerson.
    Once both the arrays are populated, call another method of Sales class which will be used for all computations and output passing both the arrays.
    In this new method say Compute() , read values from array and keep calculating total,average and whatever you want by adding steps in just this loop. You can do this in readval method too after reading the values but lets keep the calculation part seperate from input.
    You must create the working application and a web page to provide the applications information (i.e., a page with links to the source code, the javadoc and an object model) to get full credit. You can use the example.html's from the last two labs to help you remember how to do this. I think this is ur personal stuff , but if you want to use web page , you probably will require to use servlet to read values from the html form passed to the server.

  • Looping !!Help need

    i am newbie to java.Can anyone offer me help,i am building a GUI with back and next button.I hope to see the number count from 1 and proceed to next num if i press Next button and backward if press back button.I have set the limit to 20.There seem some error in and problem ,can anyone debug for me and hope to match the criteria above..Thanks
    ======================
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class Loop extends JFrame implements ActionListener{
              int limit = 20;
              int sum = 0;
              JButton next = new JButton("Next");
              JButton back = new JButton("back");
              JLabel num = new JLabel("");
    public Loop() {
              super("Button Loop");
              Container contentPane = getContentPane();
              for(int i = 1 ;i<=limit; i++);
              sum+i;
              contentPane.setLayout(null);
              JPanel panel = new JPanel();
              next.setBounds(10,10,100,30);
              back.setBounds(10,150,100,30);
              num.setBounds(50,300,100,30);
              next.addActionListener(this);
              back.addActionListener(this);
              panel.setBounds(0,0,400,300);
              panel.add(next);
              panel.add(back);
              panel.add(num);
              contentPane.add(panel);
         public void actionPerformed(ActionEvent e) {
              if(e.getSource() == next) {
                   NextB();
              if(e.getSource() == back) {
                   BackB();
    public void NextB() {
                   sum ++;
                   num.setText(sum);
    return;     
         public void BackB() {
              sum --;
              num.setText(sum);
    return;     
         public static void main(String args[]) {
              JFrame f = new Loop();
              Toolkit theKit = f.getToolkit();
              Dimension wndSize = theKit.getScreenSize();
              f.setBounds(wndSize.width/4, wndSize.height/4,wndSize.width/2, wndSize.height/2);
              f.setVisible(true);
         f.setResizable(false);
              f.show();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    Sorry guys if i got make u all misunderstand!!I want to make a user can only count up to 20 and backward to 1.When i start the program,the JLabel should setText value or 1 and will start incrementing by pressing next button until it reach 20 and backward way round using back button.I got problem in compilation which is
    C:\jdk1.3.1\bin>javac Loop.java
    Loop.java:6: Loop should be declared abstract; it does not define actionPerforme
    d(java.awt.event.ActionEvent) in Loop
    public class Loop extends JFrame implements ActionListener{
    ^
    1 error
    Here is the code.I will appreciated ur help and duke will be given.Thank guy :>pls modify my code
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class Loop extends JFrame implements ActionListener{
              int limit = 20;
              int sum = 0;
              JButton next = new JButton("Next");
              JButton back = new JButton("back");
              JLabel num = new JLabel("");
    public Loop() {
              super("Button Loop");
              Container contentPane = getContentPane();
              for(int i = 1 ;i<=limit; i++);
              sum= sum ++;
              contentPane.setLayout(null);
              JPanel panel = new JPanel();
              next.setBounds(10,10,100,30);
              back.setBounds(10,150,100,30);
              num.setBounds(50,300,100,30);
              next.addActionListener(this);
              back.addActionListener(this);
              panel.setBounds(0,0,400,300);
              panel.add(next);
              panel.add(back);
              panel.add(num);
              contentPane.add(panel);
    next.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent event) {
    sum++;
    num.setText(""+sum);
         back.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent event) {
         sum--;
         num.setText(""+sum);
         public static void main(String args[]) {
              JFrame f = new Loop();
              Toolkit theKit = f.getToolkit();
              Dimension wndSize = theKit.getScreenSize();
              f.setBounds(wndSize.width/4, wndSize.height/4,wndSize.width/2, wndSize.height/2);
              f.setVisible(true);
         f.setResizable(false);
              f.show();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

  • Editing IMPORTED loops.. Help?!

    Hi! Does anyone know if it's possible to alter the pitch of IMPORTED loops? Doesn't work using the Master Track editor in the usual way... Help!?

    Hi there
    By 'imported loops' I mean loops purchased from websites (or iTunes) rather than the standard Garageband loops. I do use the pitch slider on the left hand window - That is found under Show Master Track? Unless there is something else that I'm missing. I have no problen altering the pitch of a loop in this way, only loops that are imported from elsewhere. (When you 'Add loop to library' under the EDIT tab, having dragged that loop from your itunes.) I'm thinking some sort of pitch changing plug in may be the only way....

  • .fla hit counter....help  ! ! !

    I need to set a basic hit counter in my flash website (I dont
    work with HTML).
    I have found a few free .fla files on the web but have not
    been able to properly set
    them up (I think I am doing something wrong/PHP files are
    confusing to me).
    Anyways, here is exactly what I want to do:
    I want to be able to publish my website (swf) having a basic
    counter in one of the
    scene separate from the others, but then be able to go to
    that scene to check my
    hits from the main menu. Any suggestions?
    Or, can anyone share a basic .fla hit counter file? I would
    really, really appreciated!

    The hit counter appears in the "Footer" area of your iWeb page.
    Go to "Page" inspector "layout" page and increase the footer height.
    Nobody can help you with your links unless you give us your URL.

  • Neep help with infinite loop! Please Help

    I currently have a program that allows a user to enter a password protected site and it will return all the images on that page.
    I�m trying to allow the user to type in the root URL, i.e. http://stage.diabetescontrolforlife.com/ and have the program pull all the images in all of the child directories. i.e. http://stage.diabetescontrolforlife.com/tool.aspx
    I got an inner class similar to the one pulling the <IMG> tag, that pulls the <A> tag. The class adds all the links to a linkList Arraylist. In my main method I call image.getInfo(image.getLinkList()); hoping that I can just pass all the links back through the program and find all the <IMG> tags.
    The problem is that, I get the desired output but it displays in an infinite loop, and the program never ends as it searches linkList over and over for <IMG> tags.
    So, I tried to adding two different Do, While loops.
    Main Method:
    do
                image.getInfo(image.getLinkList());
                test=1;
    }while(test != 1);This one does not change the output. Infinite loop continues.
    Inner Class:
    HTMLEditorKit.ParserCallback callback;
    callback = new HTMLEditorKit.ParserCallback ()
               public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
                            do
                                        if (tag == HTML.Tag.A)
                                                    link = (String)attributes.getAttribute (HTML.Attribute.HREF);
                                                   if(link != null && !link.startsWith("javascript") && !link.startsWith("#") &&        link.startsWith("/"))
                                                                link = root + link;
                                                                linkList.add(link);
                                                               test=1; 
                    }while(test!=1);
    public void handleSimpleTag (HTML.Tag tag,MutableAttributeSet aset,int pos)
    {if (tag == HTML.Tag.IMG )This one never allows the first URL to be checked, and the program just sits there.
    Do you see anything I�m doing wrong, or anyway I can stop the infinite loop?
    I think the problem is that both of the searching tag classes are inner classes but I don�t know how to make them their own classes without messing up the whole password checking.
    Any advice would be helpful!

    HTMLEditorKit.ParserCallback callback;
              callback = new HTMLEditorKit.ParserCallback ()
                public void handleSimpleTag (HTML.Tag tag,MutableAttributeSet aset,int pos)
                        if (tag == HTML.Tag.IMG )
                            src = (String)
                                         aset.getAttribute (HTML.Attribute.SRC);
                            alt = (String)
                                         aset.getAttribute (HTML.Attribute.ALT);
                            height = (String)
                                         aset.getAttribute (HTML.Attribute.HEIGHT);
                            width = (String)
                                         aset.getAttribute (HTML.Attribute.WIDTH);
                            //System.out.println("SRC = " + src);
                            //System.out.println("ALT = " + alt);
                            System.out.println("ROOT2"+root);
                            System.out.println("SRC1"+src);
                            if(src.startsWith("http"))
                            else
                            if(src.startsWith("../"))
                                src = src.replace("../", "");
                                src = root +"/"+ src;
                            else
                            if(src.startsWith("/"))
                                src = root + src;
                            else
                                src = root +"/"+ src;
                            System.out.println("SRC2"+src);
                            altList.add(alt);
                            srcList.add(src);
                            heightList.add(height);
                            widthList.add(width);
                            currentUrl.add(passUrl);
                            if(alt == null)
                                altPresent.add("No");
                            else
                                altPresent.add("Yes");
                            URI uri = null;
                            try
                                if (!uriBase.toString ().endsWith ("/") &&
                                    !src.startsWith ("/"))
                                    src = "/" + src;
                              uri = new URI (src);
                                uri = uriBase.resolve (uri);
                                System.out.println("URL"+passUrl);
                                System.out.println ("uri being " +
                                                    "processed ... " + uri);
                                System.out.println("ROOT3"+root);
                            catch (URISyntaxException e)                           
                               System.err.println ("Bad URI");
                               return;
                            // Convert the URI to a URL so that its input
                            // stream can be obtained.
                            URL url = null;
                            try
                                url = uri.toURL ();
                            catch (MalformedURLException e)
                              System.err.println ("Bad URL");
                                return;
                            //InputStream is;
                            //String filename = url.getFile ();
                            //int i = filename.lastIndexOf ('/');
                            //if (i != -1)
                            //    filename = filename.substring (i+1);
                    @Override
               public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
                            //while(test!=1)
                                System.out.println("TEST"+test);
                            if (tag == HTML.Tag.A)
                                link = (String)
                                             attributes.getAttribute (HTML.Attribute.HREF);
                                if(link != null && !link.startsWith("javascript") && !link.startsWith("#") && link.startsWith("/"))
                                    /*if(link.startsWith("/"))
                                        link = root + link;
                                    else
                                    if(!link.startsWith("http"))
                                        link = root +"/"+ link;
                                    //if(link.contains(root))
                                        link = root + link;
                                       test=1;
                                          linkList.add(link);
              try
                         HttpURLConnection urlConn = null;
                        //URL url = new URL(server);
                        // Build the string to be used for Basic Authentication <username>:<password>
                        String userPassword =  "testmlr" + ":" + "stage1-7000";
                        // Base64 encode the authentication string
                        String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
                        //URLConnection
                        urlConn = (HttpURLConnection) url.openConnection();
                        // Enable writing to server ( to write request )
                        urlConn.setDoOutput(true);
                        // Enable reading from server ( to read response )
                        urlConn.setDoInput(true);
                        // Disable cache
                        urlConn.setUseCaches(false);
                        urlConn.setDefaultUseCaches(false);
                        // Set Basic Authentication parameters
                        urlConn.setRequestProperty ("Authorization", "Basic " + encoding);
                       // test(server);
                        BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                  new ParserDelegator().parse(in, callback, false);
                  System.out.println(in + "test123412341234");
              catch (ChangedCharSetException e)
                  String csspec = e.getCharSetSpec ();
                 Pattern p = Pattern.compile ("charset=\"?(.+)\"?\\s*;?",
                                             Pattern.CASE_INSENSITIVE);
                  Matcher m = p.matcher (csspec);
                  String charset = m.find () ? m.group (1) : "ISO-8859-1";
                  // Read and parse HTML document using appropriate character set.
    public ArrayList getLinkList()
           return linkList;
       }

  • New z77a gd80 build with 3770k -startup loop problem - please help

    I just got a new z77a gd 80, 3770k, and haf x case for my new build.  I put it all together and when i boot the fans and power go on the motherbard but it quickly shutn the sdown and retarts over and over again.  I removed the 3770k and put my 2600k in.  The same thing happens.  I uninstalled the z77a gd80 from the case and put my z68a gd80 board in with the 3770k chip.  samething.  i have tested the power supply by using my spare one.  this didn't help at all all.  i also switch the ram out.  That did not work either.  Please someone help.  I  am down my old pc and my new one now :(
    Long shot - would leaving the doors open on the case for whatever weird reason cause this?  I know that sounds insane but i can't think of anything else.

    Quote from: sewn on 15-December-12, 01:04:23
    Xmad  USB 3.0 pins can make the board not boot?
    I think it is the standoff screws because my old z68a board gets stuck in the boot loop.  See I install every whole in the haf x case with these screws.  I thought that is what i was supposed to do from the picture in the haf x manual.  I have now read you are only supposed to put the stand offs in the 9 screw holes not the entire board.
    The extra stand off, bent cpu pins, or bent and shorted usb3.0 header pins can all cause a boot failure.

  • All my LOOPS disappeared from L8 Loop browser.  HELP Please !

    hi, my loops do not show up in my loops browser in logic 8 all of a sudden. yesterday the did, and now, there is nothing there. all the choices like "dark" or "experimental" or "guitars" etc. no longer highlight. the only button that highlites is "All". and when i click it the "Reset" button highlites. then i click that an nothing again. not finding them. but when i search for them they are on my harddisk... not deleted. does anyone know how to get the loop browser to rescan the drive? ive quit logic and restarted, resterted the computer. looked thru all my choices n tried to read logic manual. cant find anything to get my loops to show back up in the browser. can anyone help?

    what is the path to your loop directory?

  • COUNT field incorrect: error help

    Hi, im quite new to java and im building an application to connect to a database and perfom various searches. the program displays the database data by means of a table.
    I can imagine ive done something wrong with the prepaired statements but i cant see what, Any suggestions would be very helpful. Here is the method that i have a problem with:
    public void test()
    Vector columnNames = new Vector();
    Vector data = new Vector();
         try
    // Connect to the Database
                   String url = "jdbc:odbc:ris1851";
                   Connection con;          
                   //String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
                   Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
                   String querySEARCH = "SELECT * FROM RIS51 WHERE SURNAME = ? order by age";
         String SEARCH = txtUser.getText();
         con = DriverManager.getConnection(url);     
         PreparedStatement search = con.prepareStatement(querySEARCH);      
         Statement stmt = con.createStatement();
         ResultSet rs = search.executeQuery();
    ResultSetMetaData md = rs.getMetaData();
    int columns = md.getColumnCount();
    // Get column names
    for (int i = 0; i < columns; i++)
                        columnNames.addElement( md.getColumnName(i) );
    //Get row data
    while (rs.next())
    Vector row = new Vector(columns);
    for (int i = 0; i < columns; i++)
    row.addElement( rs.getObject(i) );
                        data.addElement( row );
    rs.close();
    search.close();
    catch(Exception e)
    System.out.println(e );
    when i call the method i get:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect

         public void test() {
              Vector columnNames = new Vector();
              Vector data = new Vector();
                   try {
                        // Connect to the Database
                        String url = "jdbc:odbc:ris1851";
                        Connection con;
                        // String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                        String querySEARCH = "SELECT * FROM RIS51 WHERE SURNAME = "+txtUser.getText()+" order by age";
                        con = DriverManager.getConnection(url);
                        Statement search = con.createStatement();
                        ResultSet rs = search.executeQuery(querySEARCH);
                        ResultSetMetaData md = rs.getMetaData();
                        int columns = md.getColumnCount();
                        // Get column names
                        for (int i = 0; i < columns; i++) {
                             columnNames.addElement(md.getColumnName(i));
                        // Get row data
                        while (rs.next()) {
                             Vector row = new Vector(columns);
                             for (int i = 0; i < columns; i++) {
                                  row.addElement(rs.getObject(i));
                             data.addElement(row);
                        rs.close();
                        search.close();
                   } catch (Exception e) {
                        System.out.println(e);
         }You should learn more JDBC:
    http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

Maybe you are looking for

  • Posting date wise PM order actual cost

    Hi friends , I want a report where I can see the actual cost of PM orders , posting period wise : Say an order's basic start date =  26.7.2011 material is reserved on the order on 29.7.2011 with planned cost Rs100 . Now reservation is issued with MIG

  • Where can I find a driver for the SM bus? It is not available thru HP support.

    I have a Compaq Presario V5120NR notebook. My operating system crashed and was not recoverable. I ourchased a copy of Windows XP Home Edition and installed it. This is the same operating system that came on the notebook. I downloaded all drivers avai

  • How do I disconnect text in left margin from the main text box

    I've used a template that has a graphic and text in a wide margin on the left side of the page. The margin is set at 2.75, where a a single column text box resides, containing much more descriptive text. It seems the material inside the left margin i

  • How to install printer on windows

    hi, i bought a canon mp460 that works through my airport express from my mac.... but how would i add this printer to a windows machine??? windows are so complicated... please help me figure this out!?!? help is very appreciated

  • Security Update 2008-004 (PPC) caused kernel panic

    I installed the Security Update 2008-004 (PPC) and Safari Update 3.1.2 and now I can't access my main startup drive +(the problem started immediately after I restarted my G4 after installing the Security Update 2008-004 -- I got the gray screen with