User Profile

Collapse

Profile Sidebar

Collapse
Nobody4406
Nobody4406
Last Activity: Jun 2 '15, 11:55 AM
Joined: May 26 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • here is my code

    Code:
    //Brandon Dixon, CRHS
    import java.io.*;
    
    public class J13Q1
    //finds the average of an array of numbers
    {
        public static void main(String[]args) throws IOException
        {
         double[] numbers = new Double [10];
    
           While numbers <= [10]
            {
              System.out.println("please enter a number");
    ...
    See more | Go to post

    Leave a comment:


  • How to make a loop that takes user input and puts it into an array

    Hi, I'm trying to make a loop that fills each of the 10 places in the array with a value, however i cant figure out how to make the loop end once all the slots in the array are finished. Thanks
    See more | Go to post

  • Nobody4406
    started a topic why doesn't my loop continue
    in Java

    why doesn't my loop continue

    I'm trying to write a program that asks the user to enter a single letter untill they enter a (.) They hit enter after each letter, but the loop wont continue. It asks them to enter a letter, then it sks for another letter (because it's not a peroid) but then it just stops. The loop doesnt continue. Even if they enter a peroid the second time, it wont accept it.

    Code:
     public class J12Q5
    // counting letters
    {
        public
    ...
    See more | Go to post
No activity results to display
Show More
Working...