JAVA Learning Group

Here you can talk about everything you want.

Moderator: danekbel

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 14:01

Here you can discuss about :java .
And of course learn about it.
Share your knowlegde with each other! Spread JAVA! And learn how to use JAVA Into your advantage.

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 14:05

I am currently trying to make Clicker game application, how do I create list view thingy? I am going to add Auto click upgrades.

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3697
Joined: Fri Feb 10, 2017 14:53
Location: Japan

Re: JAVA Learning Group

Post by Bearbear65 » Fri Aug 25, 2017 14:16

I completely forgot java (still I didn't know too much)
ImageJust my opinion

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3697
Joined: Fri Feb 10, 2017 14:53
Location: Japan

Re: JAVA Learning Group

Post by Bearbear65 » Fri Aug 25, 2017 14:22

Something like snake
I heard it is easy (I don't know if it means easy for beginners or people like lobby)
ImageJust my opinion

User avatar
Lobby
Developer
Reactions:
Posts: 2323
Joined: Sun Oct 26, 2008 12:34

Re: JAVA Learning Group

Post by Lobby » Fri Aug 25, 2017 14:29

Java is just a language. You have to use libraries to actually show something to your screen other than a command line. For Android, there's the Android SDK by Google which is really powerful but also not that easy to use. However, it allows you to point and click your UI which is useful at the beginning (you may have to use Android Studio to do so).
...Have a nice stay

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3697
Joined: Fri Feb 10, 2017 14:53
Location: Japan

Re: JAVA Learning Group

Post by Bearbear65 » Fri Aug 25, 2017 14:33

Lobby wrote:
Fri Aug 25, 2017 14:29
Java is just a language. You have to use libraries to actually show something to your screen other than a command line. For Android, there's the Android SDK by Google which is really powerful but also not that easy to use. However, it allows you to point and click your UI which is useful at the beginning (you may have to use Android Studio to do so).
But first shouldn't you learn the basics like
Cases or switch scanner (if I am right) things
ImageJust my opinion

User avatar
Lobby
Developer
Reactions:
Posts: 2323
Joined: Sun Oct 26, 2008 12:34

Re: JAVA Learning Group

Post by Lobby » Fri Aug 25, 2017 14:39

Yes, that's probably helpful :)
...Have a nice stay

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 14:42

Oh ok. But do I have A permission to share .APK File?

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3697
Joined: Fri Feb 10, 2017 14:53
Location: Japan

Re: JAVA Learning Group

Post by Bearbear65 » Fri Aug 25, 2017 14:42

JustAnyone wrote:
Fri Aug 25, 2017 14:42
Oh ok. But do I have A permission to share .APK File?
Your own?
ImageJust my opinion

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 14:44

Bearbear65 wrote:
Fri Aug 25, 2017 14:42
JustAnyone wrote:
Fri Aug 25, 2017 14:42
Oh ok. But do I have A permission to share .APK File?
Your own?
Yes
President of Domkisas
Founder and owner of DSA
Discord manager.

User avatar
Bearbear65
Inhabitant of a Supercluster
Reactions:
Posts: 3697
Joined: Fri Feb 10, 2017 14:53
Location: Japan

Re: JAVA Learning Group

Post by Bearbear65 » Fri Aug 25, 2017 14:46

Yes
ImageJust my opinion

User avatar
Lobby
Developer
Reactions:
Posts: 2323
Joined: Sun Oct 26, 2008 12:34

Re: JAVA Learning Group

Post by Lobby » Fri Aug 25, 2017 14:50

I think that's ok, as long as no viruses or illegal software are distributed that way.
...Have a nice stay

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 14:51

Oh ok. I will have that in mind. I will have to test everything in that app to be sure everything works.
For application thingy:
Username: TheoTown Forum
Password: thanks
You will get something awesome: (Just imagined one idea.)
Don't worry, I'm not evil. Virus free.

User avatar
khadafi laidi
Inhabitant of a Continent
Reactions:
Posts: 1091
Joined: Fri Dec 16, 2016 13:11
Location: ternate,indonesia

Re: JAVA Learning Group

Post by khadafi laidi » Fri Aug 25, 2017 14:57

Lobby wrote:
Fri Aug 25, 2017 14:29
Java is just a language. You have to use libraries to actually show something to your screen other than a command line. For Android, there's the Android SDK by Google which is really powerful but also not that easy to use. However, it allows you to point and click your UI which is useful at the beginning (you may have to use Android Studio to do so).
OFF TOPIC:
Java real name in Indonesia Jawa
Fact about me:
-President of FINDONEZIA
-Plugin illustrator
-Motivator
-Comedian B)
-Indonesian translator (Stoped)
-I hate soccer :x

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 16:20

Here are some simple examples with a "if" code

Basic code

Code: Select all

public class Program {
    public static void main(String[] args) {
        
        //by Josh, have a nice day!
        
        int number = 1;
        //choose your number
        
        if (number > 0) {
            System.out.println("Higher than 0");
        }
        
        if (number < 0){
            System.out.println("Lower than 0");
        }        
    }
}
You can make a comment by putting // before your text, this will not have influence on your code

Another code

Code: Select all

public class Program {
    public static void main(String[] args) {
        
        //by Josh, have a nice day!
        
        int numberOne = 1;
        //choose your first number
        int numberTwo = 0;
        //choose your second number 
        
        if (numberOne > numberTwo) {
            System.out.println("Number one is higher than number two");
        }
        
        if (numberOne < numberTwo){
            System.out.println("Number two is higher than number one");
        }        
    }
}
You can also make a simple game with it :)

Code: Select all

public class Program {
    public static void main(String[] args) {
        
        //by Josh, have a nice day!
        
        int age = 18;
        //choose your age
        int money = 500;
        //choose how much money you have
        
        if (age > 18 || money > 500) {
            System.out.println("Welcome!");
            
        }
            
        if (age == 18 || money == 500) {
            System.out.println("Welcome!");
            //Haha I got you Lobby :)
        }
        
        if (age < 18 || money < 500) {
            System.out.println("Sorry but you are not allowed!");
        }        
    }
}
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 16:23

The "<, >" signs are for higher or lower. Example:

2 < 1
1 > 2

Number 2 is higher than number 1
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 16:27

I also recommend using the app Sololearn & Derek Banas tutorials on youtube, can be handy because I use them too, you only need to take your time!

Derek Banas: https://m.youtube.com/user/derekbanas
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 16:28

Want to hear a secret thingy? @Josh
President of Domkisas
Founder and owner of DSA
Discord manager.

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 16:28

Yes
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 16:40

Java has 6 relational operators
> : Greater Than
< : Less Than
== : Equal To
!= : Not Equal To
>= : Greater Than Or Equal To
<= : Less Than Or Equal To
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
Lobby
Developer
Reactions:
Posts: 2323
Joined: Sun Oct 26, 2008 12:34

Re: JAVA Learning Group

Post by Lobby » Fri Aug 25, 2017 17:07

@Josh what does your latest program output if age is 18 and money is 500? :evil:
...Have a nice stay

User avatar
JustAnyone
Inhabitant of a Continent
Reactions:
Posts: 1006
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Contact:

Re: JAVA Learning Group

Post by JustAnyone » Fri Aug 25, 2017 17:08

Josh wrote:
Fri Aug 25, 2017 16:40
Java has 6 relational operators
> : Greater Than
< : Less Than
== : Equal To
!= : Not Equal To
>= : Greater Than Or Equal To
<= : Less Than Or Equal To
I know almost all of them.
President of Domkisas
Founder and owner of DSA
Discord manager.

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 17:29

@Lobby now it is "Welcome!" :evil:
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

User avatar
Lobby
Developer
Reactions:
Posts: 2323
Joined: Sun Oct 26, 2008 12:34

Re: JAVA Learning Group

Post by Lobby » Fri Aug 25, 2017 17:54

You could simplify your program to

Code: Select all

public class Program {
    public static void main(String[] args) {
        //by Josh, have a nice day!
        
        int age = 18;
        //choose your age
        int money = 500;
        //choose how much money you have
        
        if (age >= 18 || money >= 500) {
            System.out.println("Welcome!");
        } else {
            System.out.println("Sorry but you are not allowed!");
        }        
    }
}
Or short and dirty:

Code: Select all

public class Program {
    public static void main(String[] args) {
        //by Josh, have a nice day!
        
        int age = 18;
        //choose your age
        int money = 500;
        //choose how much money you have
        
        System.out.println((age >= 18 || money >= 500) ? "Welcome!" : "Sorry but you are not allowed!");
    }
}
...Have a nice stay

User avatar
Josh
Graphic designer
Reactions:
Posts: 1933
Joined: Sat Mar 11, 2017 19:20

Re: JAVA Learning Group

Post by Josh » Fri Aug 25, 2017 17:56

Ok, thank you :)
Proud TheoTown player sinds update 1.1.50
My plugins and collections!
Creator of Aldorria, Covinton Empire, West Country, Sunnydale
Save nature, before it kills you🌲

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests