Results 1 to 5 of 5
Thread: Help for a noobie
- 05-25-2010, 11:12 PM #1
Member
- Join Date
- May 2010
- Posts
- 10
- Rep Power
- 0
Help for a noobie
Im really new to java im finishing an online course and i need to know how to get a user input for an integer i think. The idea is such. i use a switch statement with many cases and i want the integer in the switch to be chosen by the user and then the corresponding day be printed. I believe that is what is necessary for this question: "Write a Java program using switch statements to list the days of the week corresponding to their input numbers?"
and for a seperate question, how do i write a program in html with java to count the number of mouse clicks on a button within a frame. and have a yes or no question on the screen and have it count the votes in a poll.
and write a program that will print the position of the mouse when it is clicked within a frame. and have the mouse click event cause a change in color of the applet screen
thanksLast edited by ilop12; 05-25-2010 at 11:15 PM.
- 05-25-2010, 11:26 PM #2
thats quite a few questions!
First
some where in your code you are going to read in an integer then pass the integer to the switch statement, that sounds like what your trying to do.
what have you done so far in your code, which bit do you not understand
try posting up your code so far using code tags. this link explains how. Java Forums - BB Code List
and then explain where your stuck.
EDIT: this might also help http://java.sun.com/docs/books/tutor...ts/switch.html
Kind regards
SonnyLast edited by sonny; 05-25-2010 at 11:31 PM. Reason: added links
:p I still have my "L" plates on...... directions and explanations are far more help than blaring your Horn! :p Watching:CS106a on YouTube \Reading The Art & Science of Java by Eric S Roberts
- 05-26-2010, 02:51 AM #3
Member
- Join Date
- May 2010
- Posts
- 8
- Rep Power
- 0
for write a program in html with java, you can learn java applet or jsp. you can implement java bean for jsp. it would be easier...
best regard
akbar
Don't Give Up...
- 05-26-2010, 03:12 AM #4
Why do want/need to do that? How is your project designed that you need to generate html?write a program in html with java
An html file is simply text and java can easily write text files.
It seems you have a bunch of ideas without any design or connections between them.
- 05-26-2010, 03:56 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you know that, Java has various technologies to work with such as JSP, Servlet and many more. Based on your requirement have to move into. So the best way you should select one stream for the moment and study about it. When you more keen on that other stuff can be learn easily.
Similar Threads
-
[SOLVED] Problems using if / else? Noobie! :-)
By fullmetaljacket in forum New To JavaReplies: 4Last Post: 05-23-2009, 12:43 AM -
[SOLVED] Noobie - Calculating Percentages
By fullmetaljacket in forum New To JavaReplies: 16Last Post: 05-22-2009, 01:10 AM -
[SOLVED] Noobie Help! Constructors
By fullmetaljacket in forum New To JavaReplies: 6Last Post: 05-14-2009, 02:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks