linkedinlearning / learning-java-2825378 Goto Github PK
View Code? Open in Web Editor NEWThis repository is for the Linkedin Learning course: Learning Java
License: Other
This repository is for the Linkedin Learning course: Learning Java
License: Other
sublime
public class helloWorld{
public static void main(string[] args){
system.out.println("hello world! It's me malitha!");
}
}
cmd ,
C:\Users\user\Desktop\linkedin\java\java>javac helloWorld.java
helloWorld.java:3: error: cannot find symbol
public static void main(string[] args){
^
symbol: class string
location: class helloWorld
helloWorld.java:4: error: package system does not exist
system.out.println("hello world! It's me malitha!");
^
2 errors
waste of time - there is no files --- https://www.linkedin.com/learning/learning-java-4/using-the-exercise-files
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
String question = "What is the largest planet in the solar system?";
String choiceOne = "Earth";
String choiceTwo = "Jupiter";
String choiceThree = "Mars";
String correctAnswer;
correctAnswer = choiceTwo;
// Write a print statement asking the question
{System.out.println("What is the largest planet in the solar system?");}
// Write a print statement giving the answer choices
{System.out.println("Choose one of the following:" + " " + "Earth," + " " + "Jupiter," + " " + "Mars");}
// Have the user input an answer
Scanner scanner = new Scanner(System.in);
// Retrieve the user's input
String input = scanner.next();
// If the user's input matches the correctAnswer...
if(choiceTwo.equals(input.toLowerCase()))
// then the user is correct and we want to print out a congrats message to the user.
{System.out.println("Congrats! You are correct!");}
// If the user's input does not match the correctAnswer...
else {System.out.println("Incorrect, the correct answer is" + " " + correctAnswer);}
// then the user is incorrect and we want to print out a message saying that the user is incorrect as well as what the correct choice was.
}
}
I can see, there are 5 already solved issues. But why it is not closed yet?
I dont see any files in here... do I need to go to the b files separately?
Hello,
Your project is currently missing the Code of Conduct. If you are willing to add one, then I can submit a PR including that. In that case, I would need a valid contact address (email address) which would get enlisted in your Code of Conduct. Let me know what do you think about that.
Wondering where is the 04_04b located? Please see the attached images.
https://github.com/LinkedInLearning/learning-java-2825378/04_04b
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.