Need some tips..

Reply

Join Date: Sep 2007
Posts: 13
Reputation: iCez is an unknown quantity at this point 
Solved Threads: 0
iCez iCez is offline Offline
Newbie Poster

Need some tips..

 
0
  #1
Oct 11th, 2007
Here it goes, we were told to make a Multiplication thingy that the user can Input something like 5x5 and then the output will be the answer. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach me on what statement will I use so that I can study it in advance and so that I can start it coz its out project. >.<
Last edited by iCez; Oct 11th, 2007 at 9:32 am.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,826
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 117
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Need some tips..

 
0
  #2
Oct 11th, 2007
You can use expr to calculate value.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Need some tips..

 
0
  #3
Oct 11th, 2007
Originally Posted by iCez View Post
Here it goes, we were told to make a Multiplication thingy that the user can Input something like 5x5 and then the output will be the answer. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach me on what statement will I use so that I can study it in advance and so that I can start it coz its out project. >.<
For input you will most likely use Scanner.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 13
Reputation: iCez is an unknown quantity at this point 
Solved Threads: 0
iCez iCez is offline Offline
Newbie Poster

Re: Need some tips..

 
0
  #4
Oct 11th, 2007
aww.. I can't figure it out yet. I guess I have to search more. xD uhmmm.. do you have some easy guides or examples?
Last edited by iCez; Oct 11th, 2007 at 1:13 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Need some tips..

 
0
  #5
Oct 11th, 2007
What can't you figure out? You didn't actually ask anything specific - just "on what statement will I use", which is incredibly vague. I assumed you didn't know how to get the input, since the rest is almost no effort, so I pointed you to the Scanner for collecting the input.

If you have a specific question then state it clearly.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 13
Reputation: iCez is an unknown quantity at this point 
Solved Threads: 0
iCez iCez is offline Offline
Newbie Poster

Re: Need some tips..

 
0
  #6
Oct 11th, 2007
ok here's the questions that keep running on my mind.

1. what will i use for the input (you already gave me the link, i'll just need to search for more examples for it.)
2. what will i use for the output (a formula or something). example when the user inputs 5x5, how can i make the answer "25" appear.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Need some tips..

 
0
  #7
Oct 11th, 2007
1. There is an example right near the top of using it to read from console input. I have a hard time believing your teacher has not covered input at all yet though if they have assigned this project.
2. Yes, a method is just like a formula. It can take inputs, do something with them, and return an output. This part should be glaringly simple if you have followed anything in class so far.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC