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.


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