Skip to main content
Question

What are the errors in the following code?

Poblic class Has Errors
Poblic static void mainO;
n ain
Sqstem.out. print (piease coter tuvo numbers:)
X n.readDooble
y : in. read Double,
expand button
Transcribed Image Text:Poblic class Has Errors Poblic static void mainO; n ain Sqstem.out. print (piease coter tuvo numbers:) X n.readDooble y : in. read Double,
Expert Solution

Want to see the full answer?

Check out a sample Q&A here
Blurred answer
Students who’ve seen this question also like:
Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Not helpful? See similar books
Database System Concepts
Database System Concepts
Introduction. 1PE
marketing sidebar icon
Want to see this answer and more?
Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*
*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: public class output{ public static int find (int a1, int a2) { if(a1==0) return(a1+1); else if(a1>0…

A: There is a class output in which two method are there find and main. Find method is recursively…

Q: public class P3 { public static void main(String[] args) { int[] intArray = new int[10]; for (int i…

A: It basically put value of i into array arrar[i] basically it adds number from 0 to 9…

Q: class Player {   protected:    string name;    double weight;    double height;   public:…

A: Note: since your question contain multiple subparts but we can answer only 3sub-parts at a time…

Q: oublic class MysteryWho { oublic static void main(String[] args) { String whom = "her"; String who =…

A: Please find the answer below :

Q: Fill in the blanks (...)C++ homework #include using namespace std; class Date { public: ….. void…

A: #include <iostream>using namespace std;class Date {public:int day;int month;int year; void…

Q: #ifndef Time_h #define Time_h #include #include using namespace std; class myTime{ private: int…

A: There  are multi part questions in the given question. So, I am answering for first part and please…

Q: .is a block of code which only runs when it is called. - A classs integer method loop

A: According to the Question below the complete Solution:

Q: omputer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: GIVEN: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to…

Q: public class Test { public static void main(String[] args) { Аа %3D new A(3); class A extends B {…

A: First the print statement of class B will be printed then the print statement of class A will be…

Q: public class Test1 { private static int index = 0; public int x; Test1(){ index ++; } public static…

A: Encapsulation is an object oriented programming concept which is to provide more security for the…

Q: Fill in the blanks (...)C++ homework #include using namespace std; class Date { public: ….. void…

A: Please find the answer below

Q: public class IncrementDecrement { public static void main (String[] args) { int number = 50; int…

A: Given: Run the following code. Write its output and also explain the output

Q: #include using namespace std; class A { private: int x; public: A(int _x) { x = _x; } int…

A: According to the question below the solution:

Q: public class circleDemo public dass Circle{ private int raduis; private int first; private static…

A: Circle one = new Circle();      It will create an object of class Circle and also initialize the…

Q: CSE LAB APEX Test Class - Salesforce Please Desgin the Apex Test Class to solve the below problem…

A: In this problem, we need to Please Desgin the Apex Test Class to solve the below problem   Please…

Q: class Emp{ class Test { private String name; public static void main(Stringl] args) public void…

A: /** * private attributes of class can only accessed by using public methods. *      s.name = Ahmed *…

Q: Please determine errors and correct it. package test; import java.util.Scanner; public class…

A: Following were the errors in the code: Here as we need to find the salary structure of the…

Q: #include using namespace std; class A { private: int x; public: A(int _x) { x = _x; } int…

A: There is one C++ code is given as following, #include <iostream>using namespace std;class A{…

Q: Create a class named RecusiveMethod having a recursive method. The recursive method accepts an…

A: A JAVA program with a recursive method that prints the even numbers within the range should be…

Q: class Metov{ void sum(int i, int j){ System.out.println(i); } void sum(String c,String d){…

A: when the parameters are Strings, they got added which means appended and result is printed when the…

Q: class Excep { public static void main(String[] args){ try{ int arr[]=(1,2}; int x = arr[1]/arr[0]-1;…

A: Define class Excep. Define main function. Define try block. Define array arr with values 1 and 2.…

Q: Plant Flower extends Plant has Smell: boolean name: String color: String hasThorn: boolean */ /*…

A: ANSWER:-

Q: What is output? public class Vehicle { protected String vehicleName; public void setName(String…

A: Inheritance in Java is an OOP concept in which one class acquires all the properties and behaviors…

Q: CSE LAB APEX Test Class - Salesforce Please Desgin the Apex Test Class to solve the below problem…

A: I have provided the apex class for multiplication for any other operation you can replace the…

Q: public class output{ public static int find (int a1, int a2) if(al==0) return(al+1); else if(a1>0 &&…

A: Explanation:- 1. Initially both a1 and a2 value is 2. 2. Then the else condition will be hit for the…

Q: Identify errors if there is any & after identifying rewrite the code:   public class Employce {…

A: Error Free  Textual Code :- //The type Employee must be an abstract class to define a abstract…

Q: public class ReversedDigit { public static void main(String[] args) { Scanner scan =…

A: The do-while loop is a variant of the while loop.

Q: Please correct the error for this code: import java.util.Scanner; // import Scanner class required…

A: import java.util.Scanner; // import Scanner class required to accept input from userclass Employee{…

Q: Edit this code to be Allow to input a double number The code is //AssignmentMarks.java import…

A: Given that Edit this code to be Allow to input a double number The code is //AssignmentMarks.java…

Q: public class FirstEx_2ExplainCode static int counterObj= 0; public double salary = 0; public static…

A: public class FirstEx_2ExplainCodes {    static int counterObj = 0;    public double salary = O;…

Q: Date int month : int int day : int int year : int + Date (): void + Date(int aMonth, int aDay,int…

A: We have given UML class diagram. It has some attributes and methods. We have to convert the UML…

Q: Write a recursive method that converts a decimal numberinto a binary number as a string. The method…

A: A Java program for the given criteria is as follows, File name: “TestClass.java” import…

Q: public class Question1 { public static void main(String[] args) { double val; int counter = 0; int…

A: public class Question1 {   public static void main (String[]args)   {       double val;     int…

Q: Fix all the errors in the code   // Program displays some facts about a string public…

A: Objective: According to the given question, the errors should be determined from the code and fix…

Q: package Exam; public class Test1 { private static int index = 0; public int x; Test1(){ index ++; }…

A: Introduction:    Encapsulation is defined as the wrapping up of data under a single unit. It is the…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: In this problem, we need to create a record to show the tree structure and fill the data according…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: In this problem, we need to Please Design the Apex Test Class to solve the below problem   Please…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: In this problem, we need to Please Design the Apex Test Class to solve the below problem   Please…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Q: Computer Engineering lab APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve…

A: In this problem we need to Please Desgin the Apex Test Class to solve the below problem   Please…

Q: How do I fix error: class test is public, should be declared in a file named test.java public class…

A: error: class test is public, should be declared in a file named test.java public class test{ The…

Q: public class Car { public void horn() { System.out.println("Horn horn"); } } public class Ferrari…

A: NOTE - As per the guidelines we are allowed to solve only one question, please repost other parts as…

Q: // MichiganCities.java - This program prints a message for invalid cities in Michigan.   // Input:…

A: According to the asked question, the solution is given below with a proper explanation.

Q: public class AssignmentOne { public static void main(String[] args) { int x = 6; while (x > 3){ if…

A: Below is the modified Java program: - Explanation: - In the given program, first print 'Z' and '-'…

Q: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

A: Given: Please Desgin the Apex Test Class to solve the below problem   public with sharing class…

Q: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Q: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Q: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

A: Required: APEX Test Class - Salesforce  Please Desgin the Apex Test Class to solve the below problem…

Knowledge Booster
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
  • Database System Concepts
    Computer Science
    ISBN:9780078022159
    Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
    Publisher:McGraw-Hill Education
    Starting Out with Python (4th Edition)
    Computer Science
    ISBN:9780134444321
    Author:Tony Gaddis
    Publisher:PEARSON
    Digital Fundamentals (11th Edition)
    Computer Science
    ISBN:9780132737968
    Author:Thomas L. Floyd
    Publisher:PEARSON
  • C How to Program (8th Edition)
    Computer Science
    ISBN:9780133976892
    Author:Paul J. Deitel, Harvey Deitel
    Publisher:PEARSON
    Database Systems: Design, Implementation, & Manag...
    Computer Science
    ISBN:9781337627900
    Author:Carlos Coronel, Steven Morris
    Publisher:Cengage Learning
    Programmable Logic Controllers
    Computer Science
    ISBN:9780073373843
    Author:Frank D. Petruzella
    Publisher:McGraw-Hill Education
  • Database System Concepts
    Computer Science
    ISBN:9780078022159
    Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
    Publisher:McGraw-Hill Education
    Starting Out with Python (4th Edition)
    Computer Science
    ISBN:9780134444321
    Author:Tony Gaddis
    Publisher:PEARSON
    Digital Fundamentals (11th Edition)
    Computer Science
    ISBN:9780132737968
    Author:Thomas L. Floyd
    Publisher:PEARSON
    C How to Program (8th Edition)
    Computer Science
    ISBN:9780133976892
    Author:Paul J. Deitel, Harvey Deitel
    Publisher:PEARSON
    Database Systems: Design, Implementation, & Manag...
    Computer Science
    ISBN:9781337627900
    Author:Carlos Coronel, Steven Morris
    Publisher:Cengage Learning
    Programmable Logic Controllers
    Computer Science
    ISBN:9780073373843
    Author:Frank D. Petruzella
    Publisher:McGraw-Hill Education