Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6. You coded the following on line 8 of a program called test.java: int a = 26.4; When you compile, you get the following message:
6. You coded the following on line 8 of a program called test.java: int a = 26.4; When you compile, you get the following message: test.java:8 error: incompatible types: possible lossy conversion from double to int int a = 26.4 required: int found: double 1 error Explain what the problem is and how to fix it
Step 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