Coder Social home page Coder Social logo

java-course's Introduction

---

👨‍💻: A propos de moi : je suis développeur web front end baseren Rdc.

  • 🔭 Actuellement développeur front end j'envisage de devenir développeur full Stack Javascript.

  • ⚡ j'aime apprendre, découvrir de nouveaux sujets relatifs à la technologie et aider à résoudre les problèmes technologiques dans ma communauté..

  • 📫Comment me joindre:

  • Linkedin Badge

  • Twitter Badge
- ---

🛠️j'utilise et j'apprends les langages des programmations et technologies ci-dessous :

HTML  CSS  JavaScript  React  NodeJS  Exress  mongodb  npm  Redux   Firebase 
---

🔥 Mes stats :

GitHub Streak

✍️ Blog Posts :

java-course's People

Contributors

grobergm avatar hxgreensoul avatar

Watchers

 avatar

java-course's Issues

Variables

Variables

In this section, you will create a scanner object to take in user input, declare variables that will store information, and print out a friendly message!

You can comment out our 'Hello world' statement by adding // to the start of that line:

// System.out.println("Hello World!");

Type the following code under Step 2. It will create your scanner object, create your string variables that store text information, and double variables that store numeric values. Most of these variables don't have any values yet (except "cost" and "TAX_RATE"). We are just declairing their name and data type.

The Scanner object has pre-built methods we will use to process user input. Notice how we imported it at the top of the file?

Scanner keyboard = new Scanner (System.in); 

String firstName; // User's first name
String itemOrder; // Item ordered
String frostingType; // Frosting ordered
String fillingType; // Filling ordered
String toppings; // Toppings ordered
String input;  // User input

double cost = 15.00; // Cost of cake and cupcakes
final double TAX_RATE = .08;  // Sales tax rate
double tax; // Amount of tax

Add in the following comment and line of code to print friendly messages:

// Introduce shop and prompt user to input first name

System.out.println("Welcome to Java's Cake & Cupcake Shop!");
System.out.println("We make custom cakes with our secret cake batter!");

Before we test this code, remember to re-compile the java file
javac custom_order.java
Then run the file with this command:
java custom_order

If you see our friendly greeting in your terminal, add a comment to this issue.

Introduction

Java Course

Java is a popular programming language for several main reasons:

  • It workes on many different platforms.
  • It's easy to learn and open source.
  • It's fast and powerful.

Java is considered an Object Oriented programming language, making it easy to encapsulate data (and methods) in a class. A class is like a blue-print that contains all the properties that will be inherited by the objects created by it. This makes it easy to organize and re-use blocks of code.

Java is also a compiled language, meaning that it needs to be translated into machine readable code before it can run.

GitHub Learning Lab Instructions

This is an interactive course, where you will be prompted to do something to finish each step.

If it takes more than a few seconds for a response, try refreshing your browser.

Add a comment to this issue with the letter that answers this question.

Which of the following is false about Java?

a. Java is an Object Oriented programming language
b. Java is a scripting language, read only in the browser
c. Java files need to be compiled before you can run them

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.