Page 1 of 6

JAVA Learning Group

Posted: 25 Aug 2017, 14:01
by JustAnyone
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.

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:05
by JustAnyone
I am currently trying to make Clicker game application, how do I create list view thingy? I am going to add Auto click upgrades.

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:16
by Bearbear76
I completely forgot java (still I didn't know too much)

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:22
by Bearbear76
Something like snake
I heard it is easy (I don't know if it means easy for beginners or people like lobby)

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:29
by Lobby
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).

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:33
by Bearbear76
Lobby wrote:
25 Aug 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

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:39
by Lobby
Yes, that's probably helpful :)

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:42
by JustAnyone
Oh ok. But do I have A permission to share .APK File?

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:42
by Bearbear76
JustAnyone wrote:
25 Aug 2017, 14:42
Oh ok. But do I have A permission to share .APK File?
Your own?

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:44
by JustAnyone
Bearbear65 wrote:
25 Aug 2017, 14:42
JustAnyone wrote:
25 Aug 2017, 14:42
Oh ok. But do I have A permission to share .APK File?
Your own?
Yes

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:46
by Bearbear76
Yes

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:50
by Lobby
I think that's ok, as long as no viruses or illegal software are distributed that way.

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:51
by JustAnyone
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.

Re: JAVA Learning Group

Posted: 25 Aug 2017, 14:57
by khadafi laidi
Lobby wrote:
25 Aug 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

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:20
by Josh
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!");
        }        
    }
}

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:23
by Josh
The "<, >" signs are for higher or lower. Example:

2 < 1
1 > 2

Number 2 is higher than number 1

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:27
by Josh
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

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:28
by JustAnyone
Want to hear a secret thingy? @Josh

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:28
by Josh
Yes

Re: JAVA Learning Group

Posted: 25 Aug 2017, 16:40
by Josh
Java has 6 relational operators
> : Greater Than
< : Less Than
== : Equal To
!= : Not Equal To
>= : Greater Than Or Equal To
<= : Less Than Or Equal To