Search:

Type: Posts; User: Alaa

Search: Search took 0.27 seconds.

  1. Re: My data got posted into my database but there's no message shown to user on broswer.

    Hello
    if the message you want the user to see after he/she had submitted a form, then you would refresh the page for the message to appear. you can do that through the meta tag.
    Thanks
  2. Replies
    9
    Views
    278

    [SOLVED] Re: Which is better Vector or ArrayList ?

    hello
    even vector is thread-safe but what about if it is called from non synchronized method? this is why vectors don't guarantee concurrent operations to be safe. because threads still have access...
  3. Replies
    5
    Views
    223

    Re: Class, Interface, Enum expected.

    Hello,
    I think you miss the return type of your Class466() method.
    thanks.
  4. Thread: Protected members

    by Alaa
    Replies
    8
    Views
    177

    Re: Protected members

    hello,
    protected fields and methods are accessed through inheritance, they are not meant to be accessed by the DOT operator. try to change the ob.show() to show() only without calling it by the...
  5. Thread: Chess Program

    by Alaa
    Replies
    218
    Views
    2,606

    Re: Chess Program

    hello
    try to make the class square of type jpanel and override the paintComponent method to place the images in it. then you should be able to place as many squares as you want in the chess board....
  6. Re: Recommendations Wanted For SAP PI/WebMethods/EIM/HTML Opportunities

    hello,
    you can make your servlet thread safe by wrapping up the fields, that users will have access to and make changes to their values, by synchronized blocks. however you need to take extra care...
  7. Thread: Extending Jframe

    by Alaa
    Replies
    7
    Views
    200

    Re: Extending Jframe

    hello,
    I have noticed that you did not add your button2 in your constructor and the else if statement is actually outside the actionperformed method.
    try to fix that and see what you will get. ...
  8. Thread: Source Code

    by Alaa
    Replies
    3
    Views
    213

    Re: Source Code

    Hello copeg,
    Unfortunately that was good book to read. I will have to look for more recent books though they are much higher in price.
    Many Thanks
  9. Thread: Source Code

    by Alaa
    Replies
    3
    Views
    213

    Source Code

    Hello,
    I need help with source codes of Wrox Professional Java Server Programming published 1999 ISBN: 1-861002-77-7. I have looked at wrox website and did not find it, then I figured out that wrox...
  10. Replies
    9
    Views
    459

    Re: Half Triangle printout

    hello,
    try this code and see what you get. however trying class 9 7 will output different than class 7 9
    have a look...
    ....
  11. Thread: reverse program

    by Alaa
    Replies
    4
    Views
    160

    Re: reverse program

    hello,
    i believe i can not reverse if i can not do so, there is no way to get out without using string methods, however check that if the requirement does not allow you to use the string.reverse()...
  12. Thread: reverse program

    by Alaa
    Replies
    4
    Views
    160

    Re: reverse program

    hello,
    have a look to this code and see what you get...

    public void reverse(String str)
    {
    int length = str.length();

    for(int i = length-1; i >= 0; i--)
    {...
  13. Replies
    3
    Views
    177

    [SOLVED] Re: If condition not working.

    hello,
    think of check.next() and username are different objects since String objects are immutable. you cant compare two objects by == operator however java team provided the method equals to...
  14. Replies
    9
    Views
    459

    Re: Half Triangle printout

    hello,
    for rows and columns output you would use nested loops. this is an array-like-value resulting from your code so the for loop you have written is good one step towards your program however...
  15. Replies
    3
    Views
    177

    [SOLVED] Re: If condition not working.

    hello,
    try the equal method instead of == operator and see what you get which in your case:
    if(check.nextLine().equals(username))
    {...}
Results 1 to 15 of 16