I've been reading the Java tutorials about a lesson a day. The first parts of it I understand, but then it gets to where I don't understand everything. Is there a complete noob guide that will guide me through all the stuff in the Oracle tutorial, except simplified?
Where did you start not understanding certain points? Just an URL to the page would be enough, so we can see how far you go.
The reason behind this question is the fact that not everything in proramming can be learned right away. Sometimes it takes a while for a certain subject to 'sink in'. However, it could also be that you just can't follow the (fairly complicated) way the official tutorials explain stuff. In that case, following an easier guide is a good solution.
What part of that page don't you understand? I'm just after that part.
Here is a calculator I made using classes. maybe it will help you understand. Think of the classes as Mammals. The objects are the types of mammals like dogs, cats.
I separated each class with dashes
import java.io.*;
public class calcHandler {
public void Calculating(){
keyboardInput keyboard = new keyboardInput();
numberHolder holdNum = keyboard.getNumbers();
int aNumber1 = holdNum.number1;
int aNumber2 = holdNum.number2;
System.out.println(+aNumber1 + " * " +aNumber2 + " is " +calcHandler.Mutiplication(aNumber1, aNumber2)); // output multiplication answer
if (aNumber2 > 0){ // loop checks for 0 as 2nd number entered.
System.out.println(+aNumber1 + " / " +aNumber2 + " is " +calcHandler.Division(aNumber1, aNumber2)); // if 0 display that
} else { // if not 0
System.out.println("Division by 0 is not possible"); // display this
}
System.out.println(+aNumber1 + " + " +aNumber2 + " is " +calcHandler.Addition(aNumber1, aNumber2)); // output addition answer
System.out.println(+aNumber2 + " - " +aNumber1 + " is " +calcHandler.Subtraction(aNumber1, aNumber2)); // output subtraction answer
}
public static int Mutiplication (int aNumber1 , int aNumber2 ) // method for multiplication
{
int multiplied; // int will hold the answer.
multiplied = aNumber1 * aNumber2; // the arithmetic
return(int)multiplied; // return a int value
}
public static int Division (int aNumber1 , int aNumber2) { // method for division
int divided; // int will hold the division answer
divided = aNumber1/aNumber2; // the arithmetic
return(int)divided; // return a int value
}
public static int Addition (int aNumber1 , int aNumber2) { // method for addition
int added; // int that will hold addition answer
added = aNumber1 = aNumber2; // the arithmetic
return(int)added; // return int value
}
public static int Subtraction (int aNumber1 , int aNumber2) { // method for subtraction
int subtracted; // int will hold answer to subtraction
subtracted = aNumber1 - aNumber2; // the arithmetic
return(int)subtracted; // return int value
}
}
-----------------------------------------
import java.util.Scanner;
public class keyboardInput extends calcHandler {
public numberHolder getNumbers () {
Scanner getNum = new Scanner(System.in);
numberHolder holdNum = new numberHolder();
System.out.println("Enter a number");
holdNum.number1 = getNum.nextInt();
System.out.println("Enter a second number");
holdNum.number2 = getNum.nextInt();
return holdNum;
}
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class launcher {
public static void main(String[] args)throws IOException {
int loop =0;
while (loop==0) {
calcHandler start = new calcHandler();
start.Calculating();
String yN = null;
BufferedReader yesNo; // bufferedreader to get Y or N
yesNo = new BufferedReader(new InputStreamReader(System.in)); // get input
System.out.println("Would you like to continue using the calculator? y or n"); // ask user for y or n
yN = yesNo.readLine(); // make yN = what user entered
char go = yN.charAt(0); // make char go = first character in yN
if (go == 'n') { // checks if user hits n. Ends program if n is hit.
break; // end loop
}
}
}
}
-------------------------------------------
public class numberHolder {
public int number1 = 0;
public int number2 = 0;
}
Sorry, this program is more clear.
public class Pie { // create pie class
String type; // create string for the type of pie
String size; // create string for the type of pie
String price; // string for the price of the pie
}
----------------------------------------
import java.io.*;
import java.text.*;
import java.util.Arrays;
import java.math.*;
public class PieOrder {
public static void main(String[] args) throws IOException {
String recordType = null; // string for the type input
String recordSize = null; // int for size input
String recordPrice = null; // int for the price input
BufferedReader typeInput; // Get user to input the type of pie they want.
typeInput = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the type of pie ");
recordType = typeInput.readLine();
BufferedReader sizeInput; // Get user to input the size of pie they want
sizeInput = new BufferedReader(new InputStreamReader(System.in));
System.out.println("What size of pie would you like?(Small, medium, large) " );
recordSize = typeInput.readLine();
BufferedReader priceInput; // Get user to input the size of pie they want
priceInput = new BufferedReader(new InputStreamReader(System.in));
System.out.println("How much will you be selling the pie for? ");
recordPrice = priceInput.readLine();
Pie newPieorder = new Pie(); // create a new pie object
newPieorder.type = recordType; // new type of pie
newPieorder.size = recordSize; // the size of the pie
newPieorder.price = recordPrice; // the price of the pie
System.out.println("Here is a review of your order:");
System.out.println("You ordered a " +newPieorder.size+ " " + newPieorder.type + " pie that will sell for " + newPieorder.price+ " dollars");
}
}
Rollback Post to RevisionRollBack
The Commies count their quarters and the ArtSci wish they could, the Engs have the longest pole and slam it home for good, so big, so hard, so tall, it reaches all the way to heaven, so shut your hole, we climbed the pole, we're sci 1 ing 7!!!
TheNewBoston's tutorials on Java are very very good. You just have to have the patience to sit through them. He takes a long time to get to the point but that's because he takes the time to explain every little detail about what you are doing, how it works, why you do it, getting you to visualize it, etc.
They are very good tutorials for someone who wants to start learning to code.
Stanford recorded their programming methodology class and it is free and helpful. It can be found .
Also, books are helpful like Java 2 Primer Plus and help to cover the basics of Java.
I recommend using both of these to get a full understanding of the basics of the language. Each explains the different features differently so if you don't understand on the book, you may understand on the lecture.
From personal experience and being told so, TheNewBoston's tutorials are oversimplified like hell and miss out on big points. I could very well be wrong, but I believe HTML is a very simple language compared to Java. Like VERY simple.
Rollback Post to RevisionRollBack
I'm back from my eternal slumber of 2 or 3 months. A long-ass time.
Oh boy, visual basic. I can barely contain my excitement.Not.
Stanford recorded their programming methodology class and it is free and helpful. It can be found .
Also, books are helpful like Java 2 Primer Plus and help to cover the basics of Java.
I recommend using both of these to get a full understanding of the basics of the language. Each explains the different features differently so if you don't understand on the book, you may understand on the lecture.
From personal experience and being told so, TheNewBoston's tutorials are oversimplified like hell and miss out on big points. I could very well be wrong, but I believe HTML is a very simple language compared to Java. Like VERY simple.
Pretty much, yeah. That video you suggested is an absolute classic, I strongly recommend watching it. If you prefer learning at your own pace, a book may be better. The book Thinking in Java explains programming concepts really well, but it doesn't contain a whole lot of examples. Hwever, it's free, so if you want to try it, go ahead.
Indeed, TheNewBoston's tutorials miss out on big points. They're useful if you want to learn how to use a part of the default libraries, like the Scanner class, but that's about it. If you just want to get going quickly, you could watch some of them, but his explanations (What is a class, what does the Static keyword do, what is an enumeration, an so on) are severely lacking,
The reason behind this question is the fact that not everything in proramming can be learned right away. Sometimes it takes a while for a certain subject to 'sink in'. However, it could also be that you just can't follow the (fairly complicated) way the official tutorials explain stuff. In that case, following an easier guide is a good solution.
I liked The New Boston's HTML tutorials, does he have a good Java tutorial?
Here is a calculator I made using classes. maybe it will help you understand. Think of the classes as Mammals. The objects are the types of mammals like dogs, cats.
I separated each class with dashes
-----------------------------------------
----------------------------------------------------------
-------------------------------------------
Sorry, this program is more clear.
----------------------------------------
They are very good tutorials for someone who wants to start learning to code.
Also, books are helpful like Java 2 Primer Plus and help to cover the basics of Java.
I recommend using both of these to get a full understanding of the basics of the language. Each explains the different features differently so if you don't understand on the book, you may understand on the lecture.
From personal experience and being told so, TheNewBoston's tutorials are oversimplified like hell and miss out on big points. I could very well be wrong, but I believe HTML is a very simple language compared to Java. Like VERY simple.
2 or 3 months.A long-ass time.Oh boy, visual basic. I can barely contain my excitement. Not.
Pretty much, yeah. That video you suggested is an absolute classic, I strongly recommend watching it. If you prefer learning at your own pace, a book may be better. The book Thinking in Java explains programming concepts really well, but it doesn't contain a whole lot of examples. Hwever, it's free, so if you want to try it, go ahead.
Indeed, TheNewBoston's tutorials miss out on big points. They're useful if you want to learn how to use a part of the default libraries, like the Scanner class, but that's about it. If you just want to get going quickly, you could watch some of them, but his explanations (What is a class, what does the Static keyword do, what is an enumeration, an so on) are severely lacking,