salazar's Profile User Rating: -----

Reputation: 102 Stalwart
Active Members
Active Posts:
596 (0.72 per day)
26-June 13
Profile Views:
Last Active:
User is offline Sep 17 2015 06:20 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   salazar has not set their status

Posts I've Made

  1. In Topic: What java xlint option will show unused import warning?

    Posted 16 Sep 2015

    Yeah, I have verified it and it doesn't have this warning feature. I was able to figure out how to finally do it in eclipse, I was imported the project as a general and needed to let eclipse know that it is a java project. But that's unrelated to this. Thanks for the answer and the tips.
  2. In Topic: If/else help -

    Posted 16 Sep 2015

    Try editing your question. It seems confusing.
  3. In Topic: Need help with a program.

    Posted 19 Aug 2015

    View PostA7r1a5, on 19 August 2015 - 07:48 PM, said:

    View PostAnarion, on 19 August 2015 - 06:16 PM, said:

    Use proper indentation to make your code more readable. It can also help you find out some mistakes easier.

    Now towards the error, take a closer look at the loop(s) you have:
    for (y = 0; y < n; y++)
        if (s[x] != ' ')
            printf("%c", s[x]);
        while (s[x] != ' ');
        if (s[x] == ' ')
        if (x == n)

    In the for loop, you make sure you don't get out of the bound of the string. That's good. But I don't understand why you have both x and y? You are using an extra variable here. Stick either to x or y.
    Also, inside this loop you have an unsafe loop:
    } while (s[x] != ' ');

    Is there any guarantee that this loop doesn't get out of the higher bound for the string? I don't see any checking done for this part. Could x get higher than n-1 which is the higher bound of the string?

    If you want to fix such issues, first you should come up with a clean and clear description of what and how you want to do. Use this as a guide for writing the code.

    I don't thi k you know what you're talking about sir.

    Maybe you can be more specific instead of stating that he doesn't understand. I'm sure he knows what he's talking about. His reputation speaks for itself.
  4. In Topic: Java Help

    Posted 19 Aug 2015

    When you use the '>' operator the two operands must be of the same type. Here, you have a the var, age which is a string and you 50, a number.

    To fix, you need to convert the age to a string first. This can easily be done using
    if (Integer.parseInt(age) < 50)

    But remember for future reference: types must be the same.
  5. In Topic: Dynamically resize JFrame

    Posted 15 Aug 2015

    Have you tried using setSize ()?

My Information

Member Title:
D.I.C Addict
23 years old
November 12, 1991
Software Development
Years Programming:
Programming Languages:
Specialty: C/C++, Java
Others: Php, Bash, Perl, Prolog, Sql, UML, Javascipt, Html/CSS

Contact Information

Click here to e-mail me


salazar hasn't added any friends yet.


Page 1 of 1
  1. Photo

    JA94 Icon

    04 Nov 2013 - 11:36
    how do you pm someone on this site?
  2. Photo

    salazar Icon

    03 Sep 2013 - 18:27
    Hello me.
Page 1 of 1