The Artima Developer Community
Sponsored Link

Java Answers Forum
JAVA NEWBIE

6 replies on 1 page. Most recent reply: Jan 31, 2006 9:40 PM by Marlon Cortez

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 6 replies on 1 page
Ed Baker

Posts: 1
Nickname: tulane
Registered: Jan, 2006

JAVA NEWBIE Posted: Jan 24, 2006 8:35 AM
Reply to this message Reply
Advertisement
I'm so glad I found this site. I could really use some help and guidance on JAVA. I just started a class "Intro to JAVA Programming" and have no programming background. I know how to turn on a computer, abuse it, crash it and turn it off (I actually know a little bit more than that, but trust me.... not much more, LOLL).
I would really appreciate some suggestions as to what publications, websites etc. are out there for complete novices to the world of JAVA. I have been searching all over the net for answers to questions.
Such as:
How does a JAVA program get into executable format?
What is the command to compile a JAVA program?
What is the command to view the result of a compiled JAVA Cdoe?
How do you comment a line in JAVA?
How do you comment several lines at a time in JAVA?
Trust me I could go on and on. If anyone out there has a good source to locate these answers I would be greatly appreciative for your time and help.
ebaker1954@aol.com


Chad Gorshing

Posts: 12
Nickname: gorshing
Registered: Jun, 2004

Re: JAVA NEWBIE Posted: Jan 24, 2006 6:57 PM
Reply to this message Reply
I will try to answer most/all of your questions, please post again if I need to clarify anything further.

>How does a JAVA program get into executable format?
This is asked quite regularly here, I believe it has been asked three times this month already. Please look at some of the older posts here, I do not believe you will have trouble finding an answer to this question.

>What is the command to compile a JAVA program?
The most basic command is just javac HelloWorld.java, where HelloWorld.java is the actual name of your source code. Be aware that javac is case sensitive on the file names, and your class name and file must match exactly!

>What is the command to view the result of a compiled JAVA Cdoe?
Do you mean run the resulting file that was compiled/interpreted or actual viewing the contents?

How do you comment a line in JAVA?
How do you comment several lines at a time in JAVA?
>// is used to comment a line, where /* and */ are used to comment multiple lines.

Badsoul Hay

Posts: 8
Nickname: bsh
Registered: Jan, 2006

Re: JAVA NEWBIE Posted: Jan 24, 2006 8:49 PM
Reply to this message Reply
A good place to start is

http://java.sun.com/developer/onlineTraining/

joe smith

Posts: 21
Nickname: jetbrains
Registered: Jan, 2006

Re: JAVA NEWBIE Posted: Jan 30, 2006 1:11 AM
Reply to this message Reply
You can find the answer from the Brewing Java: A Tutorial
at Brewing Java: A Tutorial

joe smith

Posts: 21
Nickname: jetbrains
Registered: Jan, 2006

Re: JAVA NEWBIE Posted: Jan 30, 2006 1:14 AM
Reply to this message Reply
There has a free copy in http://www.jvsoft.org/



http://www.wisesoft.biz/

Marlon Cortez

Posts: 7
Nickname: cotz
Registered: Feb, 2006

JAVA NEWBIE Posted: Jan 31, 2006 9:32 PM
Reply to this message Reply
hello there guys... i'm happy to be a new member of this forum site... i'm starting to learn java..... i'm a student...
but i'm not quite satisfied with my teacher while teaching java so that i decided to search a forum site to help me out..... i have a question.... hope that you'll help me here....


my instructor ask me to create a program which is the input shows "Enter integer?" = 1234 then the output should be like this.....1 2 3 4.. as you can see it shows that a number then space to another... hoping for ur response.... tnx

Marlon Cortez

Posts: 7
Nickname: cotz
Registered: Feb, 2006

JAVA NEWBIE Question Posted: Jan 31, 2006 9:40 PM
Reply to this message Reply
public class IfElseDemo {
public static void main(String[] args) {

int testscore = 76;
char grade;

if (testscore >= 90) {
grade = 'A';
} else if (testscore >= 80) {
grade = 'B';
} else if (testscore >= 70) {
grade = 'C';
} else if (testscore >= 60) {
grade = 'D';
} else {
grade = 'F';
}
System.out.println("Grade = " + grade);
}
}
This is the output from the program.
Grade = C

what if.. i want to put myself a testscore and not by default as it was in above testscore = 76;... how change it?
tnx

Flat View: This topic has 6 replies on 1 page
Topic: static methods Previous Topic   Next Topic Topic: StackOverflowError, But Why?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use