I have a question about functions

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2004
Posts: 3
Reputation: nanacat is an unknown quantity at this point 
Solved Threads: 0
nanacat nanacat is offline Offline
Newbie Poster

I have a question about functions

 
0
  #1
Sep 21st, 2004
I was wondering if I should try and write 11 functions, one for each Or and And gate in my decoder project because its seems so redundant. I thought about doing maybe one big function for the And gates so that once the values went through the Or gates they could be passed to the And function and assessed.

This is in reference to my last post with my project attached to the thread entitled 3 to 8 decoder simulation.

I don't have to use functions to represent the gates however I'm not good at java and functions are somewhat easier for me. Any suggestions, using functions or other ways, are greatly appreciated.

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: I have a question about functions

 
0
  #2
Sep 23rd, 2004
hi everyone,
You can write the functions with boolean arguments and use the text field to get the inputs with the combo box or buttons acting as action listeners.

Yours sincerely

Richard west
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC