| | |
Need some tips..
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2007
Posts: 13
Reputation:
Solved Threads: 0
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.
You can use expr to calculate value.
•
•
•
•
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. >.<
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.
If you have a specific question then state it clearly.
•
•
Join Date: Sep 2007
Posts: 13
Reputation:
Solved Threads: 0
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.
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.
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.
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.
![]() |
Similar Threads
- 7 Tips to Keep your PC Running At Peak Performance (Windows tips 'n' tweaks)
- New Forum -- Tips and Tricks (OS X)
- Know any forum tips? (Geeks' Lounge)
- Fax Tips (Windows tips 'n' tweaks)
- Quick Search Tips (Windows tips 'n' tweaks)
- WinNT Networking Tips (Networking Hardware Configuration)
Other Threads in the Java Forum
- Previous Thread: Runtime.getruntime.exec(); for my java compiler
- Next Thread: about finding server port number
Views: 583 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component consumer database desktop draw eclipse encode error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me java javac javaee javaprojects jmf jni jpanel julia linked linux list loop mac map method methods mobile netbeans newbie number object online oracle print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner score screen server set size sms socket sort sql string swing template test textfields threads time transfer tree tutorial-sample update windows working xstream






