S
Silver
Practice
My progress
Compiler
Sign in
Working…
Practice
›
Java Fundamentals
›
Module 1. Values, Variables & Expressions
›
1.5 Strings
Task
14
of
15
·
0
solved ·
15
to go
0%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
You can read the problem, but answers are checked only for signed-in students.
Sign in to answer →
1.5 Strings — receipt line
Total: 0 / 4 pts
Practice mode — check each part and get hints as you go.
Task
An item
Pen
costs 5 each and you buy 3. Print the receipt line.
Pen x3 = 15
Your solution
public class Main { public static void main(String[] args) { // build the receipt line: item, quantity, and the total } }
Next task →