Search:

Type: Posts; User: georger55

Search: Search took 0.08 seconds.

  1. Replies
    1
    Views
    1,505

    Importance of a counter in a linked list

    What is the importance of a counter in a linked list? what would happen if one left the counter out of the linked list?


    I posted this in the question section and not sure how to link the two...
  2. Replies
    1
    Views
    1,287

    the counter variable in a linked list

    What is the importance of a counter in a linked list? what would happen if one left the counter out of the linked list?
  3. Replies
    4
    Views
    1,534

    Re: Reversing an Array

    From two different forums? I could see re-posting over and over on one forum but I went to a completely different forum. Instead of receiving help I have you tracking me down on different forums to...
  4. Replies
    4
    Views
    1,534

    Reversing an Array

    public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    System.out.println("Welcome to the word reversing program");
    System.out.println("First you...
  5. Re: Reversing letters of a words in a sentence keeping the words in the same order

    public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    System.out.println("Welcome to the word reversing program");
    System.out.println("First you...
  6. Re: Reversing letters of a words in a sentence keeping the words in the same order

    Fubarable - I am not asking for handouts, I was asking for some help on a part I was stuck on. If it was a hand out I am sure I wouldn't had as much done as I already did. Second, the input.next...
  7. Re: Reversing letters of a words in a sentence keeping the words in the same order

    Can you possibly give an example or show me?
  8. Re: Reversing letters of a words in a sentence keeping the words in the same order

    if a user typed in: java is fun then the output would be avaj si nuf
  9. Reversing letters of a words in a sentence keeping the words in the same order

    public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    System.out.println("Welcome to the word reversing program");
    System.out.println("First you...
  10. Replies
    5
    Views
    1,629

    Re: Using an Array in an equation

    lol that is where it was lol. it is 20*n[i] - 4. Overlooked that
  11. Replies
    5
    Views
    1,629

    Re: Using an Array in an equation

    Thanks for the response. I actually have the for loop.



    for (int i = 0; i < n.length; i++){
    double sum = (20*n.length) - 4;

    System.out.println("After the numbers...
  12. Replies
    5
    Views
    1,629

    Using an Array in an equation

    I am having trouble trying to figure out this only section of this program. I have an array. To keep this simple lets say the array is int n[] = {1, 2, 3, 4, 5} and I would like each number in the...
  13. Re: Storing color names and their hexadecimals in hasmap

    woooowwwww lol. I never set display = new JLabel. Thank you for helping me find this error. It is always something small
  14. Re: Storing color names and their hexadecimals in hasmap

    I have tried the getContentPane().add(display); but still having the same issue.
  15. Re: Storing color names and their hexadecimals in hasmap

    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.color.*;
    import javax.swing.border.*;

    public class Test extends JFrame{

    private...
  16. Re: Storing color names and their hexadecimals in hasmap

    final HashMap<String, String> map = new HashMap<>();
    map.put("Red", "FF0000");
    map.put("Blue", "0000FF");

    red.addActionListener(new ActionListener(){

    ...
  17. Re: Storing color names and their hexadecimals in hasmap

    If i called upon red then would FF0000 still show up such as: If i entered System.out.println("The hexadecimal for red is" + map.get("Red").StringValue()); would that make FF0000 show?
  18. Storing color names and their hexadecimals in hasmap

    HashMap<String, String> map = new HashMap<>();
    map.put("Red", FF0000);
    map.put("Blue", 0000FF);
    map.put("Green", 00FF00);
    map.put("Orange", FF7538);
    ...
  19. Replies
    2
    Views
    1,134

    Stopping the entries in a JFrame

    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.IOException;


    public class Array extends JFrame{

    private JTextField number =...
Results 1 to 19 of 21