Results 1 to 2 of 2
- 04-01-2012, 09:54 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 6
- Rep Power
- 0
Need help [Not sure what to make as title for this...]
Hey there everyone!
I'm not going to go too in-detail at the start, read my introduction for prior knowledge of me and my experience.
I was just wondering, I am using Eclipse at the moment. Once I have created all my classes, how do I compile to a jar?
After this, how do I upload it to a website to be shown?
Thanks,
Pretender.
P.S - I am not great at Java... I would just like to learn to upload them for future knowledge.
I haven't learned how to make the actual applet yet, like the border it goes in. But, how would I upload this to a website?Java Code:import java.util.Scanner; class apples{ public static void main(String args[]){ Scanner input = new Scanner(System.in); double fnum, snum, ans; System.out.println("Enter your first number: "); fnum = input.nextDouble(); System.out.println("Enter your second number: "); snum = input.nextDouble(); System.out.println("Here is your answer: "); ans = fnum + snum; System.out.println(ans); } }
- 04-01-2012, 10:02 PM #2
Re: Need help [Not sure what to make as title for this...]
Your code is not an applet, it looks like a application because of the main() method and it does not extend the applet class.
Have you read the tutorial about applets?
Lesson: Java Applets (The Java™ Tutorials > Deployment)If you don't understand my response, don't ignore it, ask a question.
Similar Threads
-
Help:P i don't even have a title
By Ophelia in forum New To JavaReplies: 32Last Post: 10-01-2011, 11:40 PM -
Not sure how to name this title so i'll just use this, HELP!
By lordarnoud in forum Advanced JavaReplies: 19Last Post: 06-10-2011, 07:58 PM -
set * at tab title
By keffie91 in forum Advanced JavaReplies: 7Last Post: 10-06-2008, 07:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks