Search:

Type: Posts; User: vysero

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    2

    Amending whole words to a/an char[][]

    So my goal is to build a word search here. The road block I have run into is how to save words, input from user, into an array. Then once I figure that out I need to try and arrange them in such a...
  2. Replies
    4
    Views
    5

    [SOLVED] Re: String Builder questions

    Ah ic okay thank you very much.
  3. Replies
    4
    Views
    5

    [SOLVED] Re: String Builder questions

    The part that is confusing me is filling my array with the randomly generated letters.


    public Build()
    {
    System.out.println("How many rows?");
    Scanner in = new...
  4. Replies
    4
    Views
    5

    [SOLVED] String Builder questions

    When I say:


    StringBuilder strBuilder = new StringBuilder();
    for(char alph = 'a'; alph <= 'z'; alph++)
    {
    strBuilder.append(alph);
    ...
  5. Re: Please help, confusing programing assignment.

    Okay so for my search method I have some questions. For some reason when I try to compile it says im missing a return statement. Any idea why?


    private boolean sHoriz(int inRow, int inColum)
    ...
  6. Re: Please help, confusing programing assignment.

    What is this line doing? if(array[r][c]==word.CharAt[0])???? lol sorry this dang line is confusing me.
  7. Re: Please help, confusing programing assignment.

    Okay well I think maybe my first method has been figured out. Tell me if I did something wrong:


    for (int r = 0; r < array.length; r++)//step into array
    {
    for (int c = 0;...
  8. Please help, confusing programing assignment.

    Okay so this is my first time taking a java course and I have been slow to learn. In any case here is my newest assignment and I am struggling.

    Assignment

    Create an Outlab5 project and put...
  9. Replies
    3
    Views
    171

    [SOLVED] Re: For loop problem

    Yeah I noticed my mistake about 5 min after posting the dern question. Sorry for wasting everyone's time here. I just needed to be printing i.
  10. Replies
    3
    Views
    171

    [SOLVED] For loop problem

    So, give me a number (1-10) and I will roll a 10 sided dice. I will continue to roll the dice until I have landed on your number 5 times and tell you how many iterations it took. I am trying to make...
  11. Replies
    6
    Views
    132

    Re: Looping questions

    I understand now thank you!
  12. Replies
    6
    Views
    132

    Re: Looping questions

    Still confused... how can a nested loop help? The trouble I am having is that everytime I loop through once, I loose the previous letter. What would the loop within this loop be doing? Or do I need...
  13. Replies
    6
    Views
    132

    Looping questions

    I am trying to build up the alphabet character by character. Like:
    a
    ab
    abc
    abcd

    Well as of now I can only print out the alphabet with my loop like abcdefg...z. Can anyone help me out?

    So...
  14. Re: Having trouble with communicating between methods, in need of assistance.

    Turns out my deploy method in my ship class is wrong as well. I thought I had it working but when i double checked I noticed I was wrong. So there has to be a way to make the deploy method do nothing...
  15. Re: Having trouble with communicating between methods, in need of assistance.

    I get what you're saying, I think. I need a method that will give me the amount of units of fuel each ship has used and its name right? So not just the onBoard amount. For instance, if a ship has 100...
  16. Re: Having trouble with communicating between methods, in need of assistance.

    Hmm still kind of stuck. Not sure what you're getting at exactly, do I need to create a method in class Ship that tracks the fuel capacity and name of the ship and then call that from the fleet...
  17. Re: Having trouble with communicating between methods, in need of assistance.

    Right so I think you're referring to the printSummary method. Here's what I have so far:


    public static void printSummary()
    {
    ...
  18. Having trouble with communicating between methods, in need of assistance.

    Okay so here's the assignment:

    Problem Statement
    You have been commissioned by the US Navy to develop a system for tracking the amount of fuel consumed by fleets of ships. Each ship has a name...
  19. Having problems understanding what is going on in this linked stack.

    Okay, so we are working with linked lists, nodes and the stack ADT. I do believe that I have somewhat of a firm grasp on each of these concepts respectively. However, it is the implementation of all...
  20. Re: Need help fast!!! 2 hours left!!! simple stack ADT

    Here is what I have so far:


    import java.util.Scanner;
    public class firstproject {
    public static void main(String[] args)
    {
    int choice, pushValue;
    boolean done = false;
    ...
  21. Re: Need help fast!!! 2 hours left!!! simple stack ADT

    Yeah I am sorry guys. I do post in a lot of forums, and so I know the rules (in general) but I was definitely freaked out. The ironic thing is that I found out the homework is not due until Monday...
  22. Need help fast!!! 2 hours left!!! simple stack ADT

    I am sooooooooo sorry if you don't like posts like this but I am in trouble i have homework due in 2 hours need help fast:

    Add two new methods to class stack:

    isEmpty() // returns true if the...
Results 1 to 22 of 24