Search:

Type: Posts; User: Samaras

Page 1 of 4 1 2 3 4

Search: Search took 0.77 seconds.

  1. Re: how to make my code play some audio?Just a bit!

    Zaphod_b i see.Thank you again for all your help.You are one of the most helpful and laconic people i have ever met in a forum.Too bad that i know you only from here.But too good that i know you at...
  2. Replies
    2
    Views
    381

    Re: Hello I'm new to this forum :)

    Ok i copy pasted the code in an IDE.However it very helpful for others to wrap your code.
    First class Author can not be public,so remove the public word.In your main you can not of course access...
  3. Replies
    2
    Views
    381

    Re: Hello I'm new to this forum :)

    Try wrapping your code like this //here your code Replace key with code in order this to work

    Also which is the name that you have given to your project?

    PS-welcome :D
  4. Re: how to make my code play some audio?Just a bit!

    1-the beep thing with the toolkit worked just fine

    2-the simpleAudioPlayer also works :D :D
    I played the notify file from C:\Windows\Media.However i got myself to download a random .wav file from...
  5. Re: how to make my code play some audio?Just a bit!

    I do not know how to handle java files from cmd.I use netbeans.
    '\u0007' did not word either.
    However i 'll focus on your 1st post. I feel bad for making you write so many words.Thanks again
  6. Re: how to make my code play some audio?Just a bit!

    System.out.println('\007'); did not work.Just a square is printed and i am on winXP.However you wrote a big post,so thank you for your effort.I am going to focus on it.Thanks again!
  7. Replies
    1
    Views
    413

    Re: .class compiling error

    You have to wrap your code into this
    <YOUR CODE GOES HERE?. Replace key with word code in order this to work.
    About the third error, the constructor requires the 1st argument to be a String and...
  8. Re: how to make my code play some audio?Just a bit!

    Only this piece of code was ok from compile


    public void soundTempo(){
    JFrame f = new JFrame("Tempo Dial");
    f.addWindowListener(new WindowAdapter() {
    @Override
    ...
  9. Re: how to make my code play some audio?Just a bit!

    Can't make it work :/ Maybe i am not ready for this :/
  10. Replies
    4
    Views
    406

    Re: Input a single char.Comparisson failed

    1-I am Greek so i do not think that it was english fault.

    2-Yeah i noticed too,but not something special :/ Also the right and left do nothing.

    Thanks anyway
  11. Replies
    4
    Views
    406

    Re: Input a single char.Comparisson failed

    Oh my god,what i missed there?? :/ Of course AND is what i need!

    Could i do the same thing by letting the user hit the arrows i said in the first post instead of w,a,s,d?
  12. Replies
    4
    Views
    406

    Input a single char.Comparisson failed

    I input the character.The code goes into an infinite loop even though it is supposed(by me i admit) not to!


    static char getInput() {
    boolean error = false;
    char c='n';
    ...
  13. how to make my code play some audio?Just a bit!

    Hello everybody,

    i now that the 'policy' is to post the code and based on this talk.But i have not an idea about this,so no code is written by me?

    -So you came here without googling?
    Of course...
  14. Re: scope of a class created as local variable

    Yes,i agree with you too :)
  15. Re: scope of a class created as local variable

    Thank you very much for you laconic answers.
  16. Re: scope of a class created as local variable

    Thank you very much.If no reference exists to the object,then it is going to be removed by garbage collector.
  17. scope of a class created as local variable

    My question is.Will the temp variable will be set to null,so it is going to be de-allocated after the termination of the function?
    NothingHere is a class.voidPositionList is a list.


    private...
  18. Replies
    8
    Views
    607

    Re: Triple Inheritance

    Copeg i also thought of what you said but i think is too much.

    pbrocway2 check this example.

    Inheritance.java


    package inheritance;

    public class Inheritance {
  19. Replies
    8
    Views
    418

    Re: Code for EvenCount

    I agree about autoboxing but look at this



    public String count(String x) {

    if (x < 10 && x % 2 == 0)
    ...
  20. Replies
    8
    Views
    607

    Re: Triple Inheritance

    I also thought that we were able to use the same functionality with the interfaces(a class can implement two or more intrefaces if wanted) but i do not think that is works for the class inheritance.
  21. Replies
    8
    Views
    607

    Triple Inheritance

    I remember that i had read that multi inheritance is not allowed in JAVA.So imagine the hierarchy is like this in my code


    A
    |
    |
    v
    B
    |
    |
  22. Replies
    8
    Views
    418

    Re: Code for EvenCount

    Is it ok to compare a string to a number?I do not think so
  23. Re: class String replaceAll does not behave as i expected

    All i wanted is to make your life easier :/ I understand that i did not succeed in it.Now you told i'll keep that in mind ;)
  24. Re: class String replaceAll does not behave as i expected

    Solved! :D I post it in order other people face the same problem :)


    void spellCorrect() {
    String temp = "";//holds a word at the time in order to check the correctness
    char...
  25. Re: class String replaceAll does not behave as i expected

    @Norm i wrote the lines of main that are invoke the method :)
    @Zaphod_b the answer was Strings are immutable ( unlike the StringBuilder Class).Hitting stop run was also needed.I am going to fix it...
Results 1 to 25 of 90
Page 1 of 4 1 2 3 4