aks29921's Profile User Rating: -----

Reputation: 111 Stalwart
Group:
Contributors
Active Posts:
326 (0.16 per day)
Joined:
24-August 09
Profile Views:
4,435
Last Active:
User is offline Today, 09:04 AM
Currently:
Offline

Previous Fields

Country:
IN
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
50

Latest Visitors

Icon   aks29921 has not set their status

Posts I've Made

  1. In Topic: Problems with my first coding assignment

    Posted 27 Jan 2015

    Quote

    changeDue = (int)Math.round((amountTendered - amountDue)) * 100 ;

    This is the cause of the problem.
    changeDue should be double and you should not cast the calculation (amountTendered - amountDue) to int.
  2. In Topic: accessing vector variables with scanner

    Posted 26 Jan 2015

    Quote

    if (v.get(i).other == carrot)

    This will compare the objects, not their values (which is what you need).
    Use equals or equalsIgnoreCase.
    Go through the String documentation http://docs.oracle.c...ang/String.html

    Quote

    x = other;

    Just think which value you are assigning here, you need it to be the other way round.
    other=x;
  3. In Topic: Java Swing addMouseListener

    Posted 23 Jan 2015

    mouseEntered & mouseExited work well for hovering.
    For handling mouse clicks, mouseClicked would be better than mousePressed & mouseReleased. The latter two basically are components of mouseClicked.
    Look at the documentation http://docs.oracle.c...useAdapter.html
  4. In Topic: ActionListener Aid needed!

    Posted 22 Jan 2015

    View PostSpaced Cowboy, on 21 January 2015 - 10:46 PM, said:

    I was wondering the same thing

    So ___________ ? Did getSource() do the trick for you?
  5. In Topic: Performance Improvement: Euler Problem 47

    Posted 22 Jan 2015

    View Postjon.kiparsky, on 21 January 2015 - 01:13 PM, said:

    Sorry, but Euler sets the terms of use, and they're pretty clear about keeping discussion of their problem sets on their boards.

    No offence to PE, but their threads cannot provide the kind of support and insights as one can get at DIC. They even start deleting posts once they get more than 200 (which is a pretty small number considering the number of people who solve the problems and post their solutions). I just don't think it would be feasible to get such a discussion going there. Simply put, their threads don't excite me (If anyone from PE reads this, please take it as a feedback). :/

My Information

Member Title:
D.I.C Regular
Age:
28 years old
Birthday:
October 14, 1986
Gender:
Location:
Dublin
Interests:
Programming, Sports, Partying, Travelling, Cooking
Years Programming:
12
Programming Languages:
C,C++,Java/J2EE,VB.NET,C#.NET

Contact Information

E-mail:
Private
Website URL:
Website URL  http://
Twitter:
aks29921

Friends

Comments

aks29921 has no profile comments yet. Why not say hello?