-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e89ba4
commit b5528d8
Showing
7 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
public class Chars { | ||
public static void main(String[] arg){ | ||
char potions = 'a'; | ||
char arithmancy = 'a'; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class Double { | ||
public static void main(String[] args){ | ||
double percentage = 73.5; | ||
System.out.println("This is my percentage "+percentage); | ||
|
||
double money = 20; | ||
int people = 3; | ||
System.out.println(money/people); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
public class Intergers { | ||
public static void main(String[] args){ | ||
int passengerCount = 8; | ||
//System.out.println(passengerCount); | ||
|
||
int busTickets = passengerCount; | ||
//System.out.println(busTickets); | ||
|
||
passengerCount = 100; | ||
//System.out.println(passengerCount); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
public class Long { | ||
public static void main(String[] args){ | ||
long globalPopulations = 8000000000L; | ||
System.out.println("globalPopulation is "+globalPopulations); | ||
long dailyWebserches = 9090990990l; | ||
System.out.println("dailywebserches is "+dailyWebserches); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
public class Strings { | ||
public static void main(String[] args){ | ||
String firstName = "Abhijeeth"; | ||
String secondName = "Sadineni"; | ||
int age = 19; | ||
String myName = firstName + secondName; | ||
String facts = myName + " is " + age + " years old. "; | ||
System.out.println(facts); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
public class UdemyChallenge3 { | ||
public static void main(String[] args){ | ||
double p = 0; | ||
int oneApplePrice = 1; | ||
int numOfCustomers = 0; | ||
int numOfApples = 500; | ||
int numOfApplesSold = 0; | ||
numOfCustomers++; | ||
numOfApplesSold+=4; | ||
numOfCustomers++; | ||
numOfApplesSold+=20; | ||
numOfCustomers++; | ||
numOfApplesSold+=200; | ||
System.out.println("wow so far you made "+(numOfApplesSold*oneApplePrice)); | ||
System.out.println(numOfCustomers +" customers love your apples"); | ||
System.out.println("you have "+(numOfApples-numOfApplesSold)+" left we will sell tommorow"); | ||
|
||
} | ||
} |