User Profile

Collapse

Profile Sidebar

Collapse
AnonyNewbie
AnonyNewbie
Last Activity: May 10 '12, 10:09 AM
Joined: Apr 11 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AnonyNewbie
    started a topic How to add online images?
    in Java

    How to add online images?

    I have a question that how to add an image from an online URL into the JFrame?

    This code is for local file.
    Code:
    ImageIcon picture = new ImageIcon("C:\\Users\\User\\Pictures\\abc.jpg");
    This is for picture in same folder.
    Code:
    ImageIcon picture = new ImageIcon("abc.jpg");
    But how about image from online?

    Thanks.
    See more | Go to post

  • AnonyNewbie
    replied to Need help for improvement.
    in Java
    By the way, user only allow to input <=9 as mentioned in the question I found online. advanced.pdf
    See more | Go to post

    Leave a comment:


  • AnonyNewbie
    replied to Need help for improvement.
    in Java
    Thanks for your helps.
    The pseudocode is given by someone replied my post at the answer.yahoo.co m, so i used some time to study it.
    I'm a very very new Java programmer, previously I just studied C. So, I'm a bit blur when see different things.
    I'm apologize for my disturb.
    See more | Go to post

    Leave a comment:


  • AnonyNewbie
    replied to Need help for improvement.
    in Java
    About the format, previously I put the "+" in wrong place, sorry for my fault.
    I have added my full code, can you help me check it?
    Thanks.
    See more | Go to post

    Leave a comment:


  • AnonyNewbie
    replied to Need help for improvement.
    in Java
    The actual answer is 10 times the answer in the example, meaning that the print out 10 times, 20 lines, and not 2 lines.
    And the "+" sign I did it before, it just add before 1 and stop adding to the others positive number....
    See more | Go to post

    Leave a comment:


  • AnonyNewbie
    started a topic Need help for improvement.
    in Java

    Need help for improvement.

    I need some help to improve my code.
    My code is duplicating the output, and the output format is not what I want.

    Here is the full Pseudo code.
    Code:
    int binary = 0;
    int sum;
    
    while(binary<256)
    sum = 0;
    for(go through all 8 digits)
        if the i-th digit is 0
            sum += i
        if the i-th digit is 1
            sum -= i
    end for
    
    if sum == 0
    ...
    See more | Go to post
    Last edited by AnonyNewbie; Apr 13 '12, 12:46 PM. Reason: Problem Solved.
No activity results to display
Show More
Working...