Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the code above: Find the errors (either compile or run-time error) so that you have the same output listed above then state the type
Given the code above:
- Find the errors (either compile or run-time error) so that you have the same output listed above then state the type of the error.
- After you fixed the errors, rewrite the Java code using your name.
- Show a screenshot of the output (if there is no screenshot of the output, the student shall get a zero mark for this question).
My Name is Dalia
I need the screenshot of the output
public class Students { public static void main(String[] args) { String si = "Java Programming"; String s2 = "at seu"; String s3 = "Type your name" ; System.out.print(s); System.out.print(" "); System.out.println(s2.toUpperCase()); System.out.println(3); System.out.println("This is my first Assignment") System.out.println("+++++++++"); System.out.print(s1.replace("java", "CS140")); System.out.print(" "); System.out.println(s2.toLowerCase()); System.out.print(8 + 8); System.out.print(" = "); System.out.println(s1.length(5)); } } Output - Students (run) run: Java Programming AT SEU My name is Mohammed F. Ali! This is my first Assignment +++++++++ CS140 Programming at seu 8 + 8 = 16 OLStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started