Subject Name: Object Oriented Programming in Java Answer the following question: • Write a Java code program to produce the odd numbers out of the first 10 numbers. • Write a Java code program to product of 5,10.......50. • Determine the output of the following code: String str="Programming"; for (int i=0; i<9; i+-2) { System.out.print( str.charAt(i)); } • Note: Attached the output shot screen of the execution code.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question
100%

 

Ans poww. 

 

 

Subject Name: Object Oriented Programming in Java
Answer the following question:
• Write a Java code program to produce the odd numbers out of the first 10 numbers.
• Write a Java code program to product of 5,10.......50.
• Determine the output of the following code:
String str = "Programming";
for (int i=0; i<9; i+-2) {
System.out.print( str.charAt(i));
●
}
Note: Attached the output shot screen of the execution code.
Transcribed Image Text:Subject Name: Object Oriented Programming in Java Answer the following question: • Write a Java code program to produce the odd numbers out of the first 10 numbers. • Write a Java code program to product of 5,10.......50. • Determine the output of the following code: String str = "Programming"; for (int i=0; i<9; i+-2) { System.out.print( str.charAt(i)); ● } Note: Attached the output shot screen of the execution code.
Expert Solution
steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Reference Types in Function
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT