Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)

Basic Java Program (first program)

SCROLL DOWN TO BOTTOM FOR LINE BY LINE EXPLANATION

This tutorial is for people who have never programmed in their lives.

What you will need:

A Compiler (For fun programs I use Eclipse java IDE for Developers)

1) You will first need to create your project and a class (using the traditional camelCase)

2) Create the following methods:

methods.png

3) Compare your code to this: 

Program1.png

4) Experiment with the simple 

System.out.print("");

putting "println" instead of just "print" 

"ln" will compile and after the text is printed it will go to the next line.

5) Print "Hello World!"

To print text all you have to do is place text inside of the ""

for example:

helloworld.png

as you can see above when ran it my text inputted!

6) That's it for a cool example of one of my old projects experimenting with printing

copy and paste this code into your compiler!

FEEL FREE TO EDIT AND PLAY AROUND WITH THIS CODE*

 

https://raw.githubusercontent.com/TorinTurner/java/master/Corvette

 

*do not take credit for my code. Also, the program is an example of polymorphism and/or inheritance.

Line by Line Explanation:

public class helloWorldEXPLAINED { //public means that this class is accessable by other packages, private means it is NOT accessable by other packages

	public static void main(String[] args) { //public and static means that it can be changes throughout the class
		// TODO Auto-generated method stub
		System.out.println("Hello World"); //this is your basic. System accesses the system lol, out means output, and print means print to console or whatver you initailzed to
	}

}

-LifeElevated

Updated by Crypto
Changed first code text from html to Java
  • Like 2
  • Informative 1
Posted

Nice TuT :frantic: But since it's for complete beginners I suggest you explain the code more (I.E. Public vs Private classes. The fact it uses dot notation) Other than that it's pretty good (y)

Posted
1 minute ago, LifeElevated said:

Software Development and Android

Could you explain what each line does please? I might get into it.

Posted
1 minute ago, bR34Kr said:

Nice TuT :frantic: But since it's for complete beginners I suggest you explain the code more (I.E. Public vs Private classes. The fact it uses dot notation) Other than that it's pretty good (y)

Good thinking!

1 minute ago, Joka said:

Could you explain what each line does please? I might get into it.

yes!

  • Our picks

    • Merge Cruise: Mystery Puzzle v0.36.800 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 32 replies
    • Merge Cruise: Mystery Puzzle v0.36.800 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Merge Cruise: Mystery Puzzle By STUDIO PEERPLAY GAMES LTD
      Bundle ID: com.peerplay.megamerge
      iTunes Store Link: https://apps.apple.com/us/app/merge-cruise-mystery-puzzle/id6459056553?uo=4
       

      🤩 Hack Features

      - Cash
      - Energy

      • 32 replies
    • Block Kingdom v0.04.48 [ +13 Cheats ] Cheat Menu
      Modded/Hacked App: Block Kingdom By Tripledot Studios Limited
      Bundle ID: com.tripledot.blastroyale
      App Store Link: https://apps.apple.com/ph/app/block-kingdom/id6741105808?uo=4


      🤩 Hack Features

      - Cheat Menu / Play Match Then Back Show Menu Button©️

      • 3 replies
    • Block Kingdom v0.04.48 [ +13 Jailed ] Cheat Menu
      Modded/Hacked App: Block Kingdom By Tripledot Studios Limited
      Bundle ID: com.tripledot.blastroyale
      App Store Link: https://apps.apple.com/ph/app/block-kingdom/id6741105808?uo=4


      🤩 Hack Features

      - Cheat Menu / Play Match Then Back Show Menu Button ©️


      • 5 replies
    • Zombastic: Time to Survive v1.19.0 [ +3 Jailed ] Good MOD
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 81 replies
    • Zombastic: Time to Survive v1.19.0 [ +3 Cheats ] Good MOD
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 69 replies
    • Yukon: Family Adventure v1.68.0 [ +4++ Jailed ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
      • 40 replies
    • Yukon: Family Adventure v1.68.0 [ +4++ Cheats ] Everything Unlimited
      Modded/Hacked App: Yukon: Family Adventure By Enixan Europe Limited
      Bundle ID: com.enixan.yukon.family.adventure
      iTunes Store Link: https://apps.apple.com/us/app/yukon-family-adventure/id6455041311?uo=4


      🤩 Hack Features

      - Gems

      - Energy

      - Items

      - EXP
      • 25 replies
    • Undead Slayer Action Roguelike v3.39.26 [ +14 Jailed ] Currency Max
      Modded/Hacked App: Undead Slayer: Horde Survivor By Enigma Publishing Limited
      Bundle ID: com.undeadslayer.athree.epl.as
      App Store Link: https://apps.apple.com/ph/app/undead-slayer-horde-survivor/id6746744005?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems

      - Soul Coins

      - Abyss Key

      - Rune Key

      - Gold Key

      - Red Dust

      - Blue Dust

      - Master Coin

      - Daily Star

      - HP [ Weapon Upgrade Then Equip ]

      - ATK [ Weapon Upgrade Then Equip ]
      • 16 replies
    • Undead Slayer Action Roguelike v3.39.26 [ +14 Cheats ] Currency Max
      Modded/Hacked App: Undead Slayer: Horde Survivor By Enigma Publishing Limited
      Bundle ID: com.undeadslayer.athree.epl.as
      App Store Link: https://apps.apple.com/ph/app/undead-slayer-horde-survivor/id6746744005?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems

      - Soul Coins

      - Abyss Key

      - Rune Key

      - Gold Key

      - Red Dust

      - Blue Dust

      - Master Coin

      - Daily Star

      - HP [ Weapon Upgrade Then Equip ]

      - ATK [ Weapon Upgrade Then Equip ]
      • 14 replies
    • NFL Rivals 26 Mobile Football v3.2.2 [ +3 Cheats ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:
      - AI ON Your Team 
      - Tackle 
      - No Interceptions
      • 65 replies
    • NFL Rivals 26 Mobile Football v3.2.2 [ +3 Jailed ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:

      - AI ON Your Team 
      - Tackle No
      - No Interceptions
      • 60 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines