Search:

Type: Posts; User: elamre

Page 1 of 3 1 2 3

Search: Search took 0.22 seconds.

  1. Re: Can anyone help with my Minecraft application?

    How i made my menu,
    What you could do is make an enum, add the menus in it as states (so MAINMENU, HACKS, UPDATER etc) And then make a button class which takes a couple of arguments ( Like x...
  2. Replies
    41
    Views
    1,148

    Re: Help with an object based level format

    Make a new thread about that, and post the code. I'll try to help you then.
  3. Replies
    17
    Views
    1,241

    [SOLVED] Re: The 'new' Keyword

    So there is no difference between Object object; and Object object = null?
  4. Replies
    27
    Views
    806

    [SOLVED] Re: Basic help with Constructors and Classes

    Could you post the code as is now?
  5. Re: Counting a total and printing value from 2 arrays

    2 small things. First of all, try using the .code=java] ./code] tags (replace the . with a [) so it's easier to read. Also why do you do

    arrayOneValue = arrayOneValue +1
    instead of just...
  6. Replies
    11
    Views
    747

    Re: Beginner for loop

    String day = "";
    for (int i=0; i< days.length; i++) {
    if (!dag.equals(day)) {

    This part, what should it do?
  7. Replies
    11
    Views
    747

    Re: Beginner for loop

    What do you want to achieve exactly? I'm not quite understanding the purpose of this yet.
    Also post your full output. This is what i did:

    public static void main(String[] args){
    String[]...
  8. Replies
    11
    Views
    747

    Re: Beginner for loop

    String[] days = { "Monday", "Tuesday", "Wednesday", "Turshday", "Friday", "Saturday", "Sunday" };
    String day = "";
    for (int i = 0; i < days.length; i++) {
    day += days[i]; // previously...
  9. Replies
    11
    Views
    747

    Re: Beginner for loop

    Ah ok. Your day array has a length of 7 (Monday-Sunday are 7 days). Agreed? So the days.length will return 7. Only the thing is, it starts at 0 instead of 1. So "Monday" will be 0. and then it will...
  10. Replies
    11
    Views
    747

    Re: Beginner for loop

    What is line 32?
  11. Thread: heLLO

    by elamre
    Replies
    2
    Views
    237

    Re: heLLO

    Welcome Amol
  12. Replies
    4
    Views
    287

    Re: Hi fellow programmers

    hello darey
  13. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    You could update the speed every timer tick, but why not update the position every tick?
    make something like an update function. something along the lines of:

    public void update(){
    x+=xspeed;...
  14. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    That's true indeed. Now look at the line i pointed out. It will execute that every 10 ms i believe. so every once in a very short while it will execute ball.getXPoint() and ball.getYPoint(). And...
  15. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    Try to get just 1 ball able to bounce and move properly. If you follow Norm's tips on his post, and then read what i said, you should be able to make a conclusion on what is going wrong :) .
  16. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    Owh, well mine thought me to use this. by this. you refer to a private data field. Also i'm not quite inderstanding your code. Do you want a simple ball bouncing on the screen? If so, look at this...
  17. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    Also another tip, instead of writing a "_" in front of every variable the class has, you could also use "this." makes everything a bit easier in my opinion. Example:


    private int speed = 0;...
  18. Replies
    22
    Views
    885

    Re: Help with bouncing ball

    To slow it you could always make the x and y positions a double or float i suppose and do the same for the x and y point. then multiply them by 0.1 or something. It should go slower now.
    I dont...
  19. Replies
    6
    Views
    501

    Re: Menu with Images?

    Depends how you make it. You could make a rectangle for each button, then whenever the mouse is pressed you could send the mouse pointer location to all your buttons. In your button you should check...
  20. Thread: Collections

    by elamre
    Replies
    3
    Views
    431

    Re: Collections

    Your class's name is also Collections, try renaming your class and see what happens :)
  21. [SOLVED] Re: Absolute Beginner Here, should be an easy question for anyone really.

    For the formatting, i use an ide called Eclipse, it has a really nifty build in formatter. press control shift f and everything goes where it should be. When im working together with other people we...
  22. [SOLVED] Re: Absolute Beginner Here, should be an easy question for anyone really.

    That is a good solution, you could've also made an if-else statement. No particular advantages to that, but i find it easier to understand my own code that way:


    import java.util.Scanner;...
  23. [SOLVED] Re: Absolute Beginner Here, should be an easy question for anyone really.

    What exactly does it give for error?
    Also try using the code taggs.
    .code=java]
    your code here
    ./code]

    replace the . with [
  24. Thread: Hi All

    by elamre
    Replies
    1
    Views
    267

    Re: Hi All

    Welcome to the forum, you can learn a lot on this forum, just read other peoples questions, and read and understand the answers :-).
  25. Replies
    10
    Views
    608

    Re: How do I create and run a jar file?

    I've had that problem a lot as well. For some of my friends it was an outdated java version. For the others the .exe worked. Give it a try, it's so much easier.
Results 1 to 25 of 70
Page 1 of 3 1 2 3