[[Template core/front/profile/profileHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Everything posted by LifeElevated
-
Basic Java Question
LifeElevated replied to LifeElevated's topic in Java & Android Development's Challenges!
Honestly this is worded to weird ? -
Given two double values double1 , double2, why isn’t it reliable to test their equality using: double1 == double2; ??? Comment possible code below!! If you are the first person to get this I will follow you!! HINT:
-
If & If-Else Statements An If Statement is a conditional statement. This basically means that if the program is allowed to execute a specific set of instructions, it will but, only if that condition is met. If that condition is not met the program skips over the instructions. An example of an If Statement is as followed: public class Test { public static void main(String args[]) { int x = 15; \\initialzes an integer (x) to 15 if( x < 20 ) { System.out.print("This is if statement"); \\this prints if x is less than 20 } } } An If-Else Statement works very similarly to an If Statement. The only major difference is that if your 'if' is NOT met it goes to 'else' and runs that code in the program. Instead of skipping over the conditional. An example of an If-Else Statement is as followed: public class Test { public static void main(String args[]) { int x = 30; \\like before, declares integer to a value. In this case 30 if( x < 20 ) { //if x is less than 20 (it is not) it will run the if-clause System.out.print("This is if statement"); } else{ // if the x is greater than 20 (in this situation) it runs the else-clause System.out.print("This is else statement"); } } } Some very common errors in If and If-Else Statements could be the following: if (yourCondition); \\<< IF YOU PUT A SEMICOLON HERE IT ENDS THE STATEMENT WITHOUT READING THE ACTUAL STATEMENT { //code here } That code will result in an error! -LifeElevated
-
Hey Man!
-
haaaa
-
Yeah man !
-
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: 3) Compare your code to this: 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: 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
-
Request your Awards & Achievements here!
LifeElevated replied to Rook's topic in Forum Announcements
@DiDA -
Hack NEW! Plants vs Zombies 2 Hack [+7] [2018]
LifeElevated replied to LifeElevated's topic in Save Game Cheats
ya -
Hack (NEWEST!) SimCity BuildIt [+7] [2018]
LifeElevated replied to LifeElevated's topic in Save Game Cheats
no problemo -
Hack NEW! SimCity BuildIt [+6] [2018]
LifeElevated replied to LifeElevated's topic in Save Game Cheats
You got it! :thumbsup: -
Request your Awards & Achievements here!
LifeElevated replied to Rook's topic in Forum Announcements
Requested Award: Famous Proof: 50 pages!1!! @DiDA -
No Promlemo
-
yes just 4 u just 4 u guys!
-
Yes
-
sup man haha
-
Help/Support iOS 11 Electra Jailbreak & Hacks
LifeElevated replied to electro's topic in Help & Support
make sure you have preferenceLoader installed -
good man
-
Save Game Godus v1.12 [GODLIKE] +8
LifeElevated replied to BJorn_LuLszic's topic in Save Game Cheats
Oof -
Save Game Godus HACK (All Versions) - No Jailbreak +6
LifeElevated replied to Davarious's topic in Save Game Cheats
Wow