Search:

Type: Posts; User: newbie

Page 1 of 20 1 2 3 4

Search: Search took 0.26 seconds.

  1. Re: I have tried making a simple random calculator and its not working?

    See: http://www.javaprogrammingforums.com/java-programming-tutorials/5518-common-java-mistakes.html#post18725
  2. Re: Take multiple inputs in a single line.

    We're not a homework service so please don't take the mickey.
    Work on it yourself and come back with code and a specific problem you're facing. The simple answer however is to use the Scanner class...
  3. Replies
    32
    Views
    554

    Re: Java error discovered?

    You seem obsessed with proving everyone else wrong, when you've clearly provided no counter-arguments to the factual information given to you by everyone else. The API states a behaviour, you...
  4. Replies
    1
    Views
    421

    Re: Datatable equivalence in Java 6?

    You're probably after JTable.
    A tutorial by oracle: How to Use Tables (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

    Google is a powerful tool however, simply...
  5. Replies
    11
    Views
    466

    Re: jdbc and HSQL database

    Where do you read in the values from the properties file?
  6. Replies
    11
    Views
    466

    Re: jdbc and HSQL database

    jbdc.url=jdbc:hsqldb:file:DBNAME
    jbdc.username=sa
    jbdc.password=
    jbdc.driver=org.hsqldb.jdbcDriver

    Something like this perhaps?
    Be sure to read your laboratory documentation thoroughly, as...
  7. Replies
    11
    Views
    466

    Re: jdbc and HSQL database

    Please be more specific in terms of what your problem is.

    Post the code you're dealing with and the precise problems you're having. If you're weary that Marriott will penalize you for asking for...
  8. Re: Java code which finds the number of words of length N (say 3) in a given string

    public class SpoonfeedTest {

    public static void main(String... args) {
    LengthFinder lengthFinder = new LengthFinder();
    String[] values = { "a", "b", "CC", "ddd", "b"};
    String[]...
  9. Replies
    9
    Views
    190

    [SOLVED] Re: Please Help (Queues)

    if(chance == 4)
    ( << WRONG
    Customer newCustomer = new Customer();
    customerQueue.add(newCustomer);
    system.out.println("A new customer just entered the queue.\nTotal number of...
  10. Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Duplicate posts on these forums are NOT permitted.
    Persistent violations will result in action from the moderators, so be warned.

    Do NOT post again in this thread, nor in this one.

    Instead,...
  11. Re: Hello friends, I'm in big trouble with this programme if anyone can help me out?

    Duplicate posts on these forums are NOT permitted.
    Persistent violations will result in action from the moderators, so be warned.

    Do NOT post again in this thread, nor in this one.

    Instead,...
  12. Re: Making a Test game, however the JFrame just doesnt load. I think it's an easy fix

    public void Magi()
    I'm assuming by that you're referring to the constructor of the Magi class.

    In that case, remove the return type VOID, and just have it as public Magi(), then it will display...
  13. Re: Help writing to a file getting an exception error

    To guide you through this, I've made a quick demo of how you can write to a file using Formatter.


    import java.io.File;
    import java.util.Formatter;

    public class FormatterTest {

    public...
  14. Re: Help writing to a file getting an exception error

    Also, can you provide more information including exact errors and code which errors refer to.
  15. Re: Help writing to a file getting an exception error

    See my signature.
  16. Replies
    4
    Views
    260

    Re: Problems with Math.Random() in a for loop

    I saw that yes, and of course wondered why not ,but I also didn't expect you to post two irrelevant versions :D
    Good luck.
  17. Replies
    20
    Views
    526

    [SOLVED] Re: Help with the Snake in a Snake Game

    Thanks for the update godlynom, could you kindly mark this thread as "Solved" now? (Thread tools > Mark this thread as solved).
  18. Replies
    4
    Views
    260

    Re: Problems with Math.Random() in a for loop

    As Math.random() only produces a value between 0.0 and 1.0, the highest value you can expect by multiplying by 10 is 10, and can be as low as 0.
    As you're then using that variable to control the...
  19. Replies
    22
    Views
    1,423

    Re: Timer Countdown - Code Syntax

    if(timer.isRunning()){
    timer.stop();
    bGolemi = 59;
    bGolemj = 300;
    bGolemk = 4;

    timer.start();

    }
  20. Re: Are you a JAVA ninja??? Then help me PLEASE!!!!

    The String "hello" has a length of 5.
    As indices in Java start at 0, all the valid ranges are: 0 (h), 1 (e) , 2 (l) , 3 (l) , 4 (o).

    If you let X reach a value equal to the length of the String,...
  21. Thread: Easy.

    by newbie
    Replies
    3
    Views
    295

    Re: Easy.

    You'll need 3 "SoP"s to complete it.
  22. Thread: Easy.

    by newbie
    Replies
    3
    Views
    295

    Re: Easy.

    Using your Ex2 as a base for it, notice how for(int x = 0; x < y; x++) will never be true the first time around, as both x and y would equal 0. This is the cause for you needing to add that extra...
  23. Replies
    6
    Views
    177

    Re: can some please help me with this?

    2 Simple ways to do it, you can either:
    Remove the else all together, and instead use a boolean variable which is set to true if a match is found, but outside the loop you test if(!matchfound) and...
  24. Replies
    6
    Views
    177

    Re: can some please help me with this?

    Okay, how about you post a question outside of the code block, and post one with better detail.
    If that is your original code, then "how do I deal with it" doesn't make much sense seeing as you're...
  25. Thread: Finally...

    by newbie
    Replies
    2
    Views
    342

    Finally...

    Nice to see norm has finally got his deserved title of super moderator :D.
    Well done & keep contributin'.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4