F&A Diskussionen
I am confused on this
0 Stimmen
1 Antwortusing System;
namespace GoodProgrammerTest
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter Yes or No");
Console.Write(
"Do you programme every day? : ") ;
int answer = Console.ReadLine();
if (answer =="Yes")
{
Console.WriteLine(
"You will be a good programmer");
}
else
{
Console.WriteLine(
"You will not be a good programmer");
}
}
}
}
2 Stimmen
3 Antwortenjava learning
0 Stimmen
1 Antwortpublic class Vehicle {
int maxSpeed;
int wheels;
String color;
double fuelCapacity;
void horn() {
System.out.println("Beep!");
}
}
class MyClass {
public static void main(String[ ] args) {
Vehicle v1 = new Vehicle();
Vehicle v2 = new Vehicle();
v1.color = "red";
v2.horn();
System.out.println(v1);
}
}
Explain its outcome. I am unable to get the last line of outcome.
-1 Stimme
2 AntwortenHeute heiß
Activities on sololearn
5 Votes
Html issue
2 Votes
Can you help me ?
1 Votes
Code coach
1 Votes
How I can use div
1 Votes
App development 🔥☝️
1 Votes
Computer architecture
1 Votes
What am I doing wring?
1 Votes