[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

Java Programming Tutorial – 16 – Many Methods and Instances
by
Tags:
Comments
48 responses to “Java Programming Tutorial – 16 – Many Methods and Instances”
-
my first and only gf was null ๐
-
For anyone getting errors like "input was never closed" or "input was never resolved", just make a new line directly underneath and write:
input.close();
Java has changed a bit since these videos were uploaded ๐
-
in this method we are going to import a "SHTRING" hahahahah :p
-
help girlfriend.jar not found.
-
I understand most of it but he didn't explain the purpose of the getName variable. Correct me if I'm wrong but is the purpose to give access to the data he made private to the apples class…. basically he made it private just to undo it right under?
-
Anyone that is stuck, this is how you will understand.
If you go to a channel called Sebastian League and go to his 'Unity and c#' and go to his method one, in it it tells you about this.
(Even though it's a different language and game engine it still works) -
am i supposed to know whats going on here?
-
Can't we just do this instead:
private String girlName;
public String Name(String name) {
girlName = name;
return girlName;
}public void Message() {
System.out.printf("Your first gf was %s", Name(girlName));
} -
He never really explained what the return girlName meant.
-
is it compulsory to use public string getname() method..??
-
hey is it important to use private in tuna???
-
Any Kelsey over here?
-
Why make a private variable in the first place?
-
when i tried the same it says, 'string cannot be resolved to a type'
-
You had to say that @ 5:53, didn't you? Man it's amazing to have such a complete package free of charge! I'll be proud when I make my first donation, although I'm well aware that subscribing did add to your statistics.
-
Hi Buckly
:the last method doesn't work for me
System.out.printf("Your first gf was %s", getName());
I get the error
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, String)Please help
-
Shoutout to Kelsey for being a babe.
-
Hey bucky my printf function is not working its kind of showing that it is not attached to source or Javadoc error !!! Plss help me out
-
if we don't use public String getName(){ return girlName;}
what will happen , i don't think so any thing will happen! their is no use of this in this program you'vd made! Is it ? -
kelsy is a babe
-
what is the default status of variables without using any keyword… private or public?
-
thanks bucky, i understood it, i played around with it and i created many examples but it takes time to master i replayed the video many times.
15 tutorials yesterday and only this tutorial today :O -
I lose you because of the many variable names. Where does the value from the variable "temp" gets passed into he variable "name"?
-
System.out.printf(arg0, arg1);
When i write "getName" in "arg1" it give me error
Can anyone help me ! -
ttObject.Saying();
I have a problem above in "Saying". Please help me to find my gf ๐
Somebody help -
I've discovered that C is much more similar to Java, like comparing a colon to a semicolon. Where as C++ is more like an exclamation point.
-
what is getname ?
-
printf not working :O
๐ -
She was a babe xD
-
Simplified Code:
Apples.java
package ahmed;
import java.util.*;
public class Apples {
public static void main(String []args){
Guava objGuava = new Guava();Scanner ainput = new Scanner(System.in);
System.out.println("Enter friend name :");String binput = ainput.nextLine();
objGuava.sandName(binput);}
}Guava.java
package ahmed;public class Guava {
private String xName;
public void sandName(String name)
{
xName = name;
System.out.println("MY friend name is " + xName);
}}
Any question?
Leave them in a reply -
I had an issue here where I had to change the compiler compliance level to 1.5+ or it wouldn't return the name. Project > Properties > Java Compiler.
-
it gets confusing at times, but I like it!!
-
How to use the "return", what is it for?
-
hey but when I'm using this System.out.printf("you girlfriend was %s", getName()) , I'm getting an error. it says "change the return type of getName() to Object [] . I did everything as it is ..
-
I don't get the point of a private variable… Wouldn't public work just as well in all situations?
-
Can someone please explain when to use a return method in java programming.
-
Why does bucky not like typing it takes longer to copy and paste? Does his keyboard take like 1000 newtons of force to press down a key.
-
Why would I put a private String GirlName, when I can just use the public String name, in the end GirlName = name so whats the utility of having a private String ? I did exactly the same thing he did without making a private String.
-
funny how sexist he is as his girlfriend is literally an object.
-
Can someone explain how printf and %s are working?
-
really good
-
200 thousand people gave up since the last video
-
was this able to be done in one class, or did he do it in two classes just to show how they interact? this was a little difficult to follow, since im not sure how the order works when there is more than one class.
-
Thanks man, I was doing terrible in programming class but you helped me understand everything a lot better!
-
I program so I can make my-self a girlfriend ( อกยฐ อส อกยฐ)
-
wtf is the purpose of getName() method? what will happen if I called that method of tuna class in main? what does return girlName do?
eeeeeeeeeeeeee im confused -
Why didn't he explain the printf vs the print or println?
-
I never had a gf so my first gf is ''Null'' . dammit. ๐
Leave a Reply