Practice Challenges for Fun
Explore practical coding challenges designed to reinforce your skills with Java classes and objects. Learn to manipulate strings, extract data, encode text, and perform arithmetic operations. This lesson helps you apply core concepts through hands-on coding exercises.
We'll cover the following...
We'll cover the following...
Quiz
Attempt the following quiz questions and check your understanding of Classes and Objects in Java.
Part 1
Technical Quiz
1.
What one println statement will display the following tabbed heading?
Name Address City State Zip
A.
System.out.println("Name\nAddress\nCity\nState\nZip");
B.
System.out.println("Name\tAddress\tCity\tState\tZip");
C.
System.out.println("Name\pAddress\pCity\pState\pZip");
D.
System.out.println("Name\cAddress\cCity\cState\cZip");
1 / 3
Part 2
1.
What does it mean to instantiate an object?
Show Answer
1 / 8
Practice Challenges
Challenge 1: Edit a string
Many programs convert the information provided by the user to a consistent format. For example, we could require all data that is read to be converted to uppercase. Imagine that the ...