0% found this document useful (0 votes)
21 views1 page

CSCI213 Spring2013 Workshops Lab 3

This document outlines the lab assignment for a Java programming course. Students are asked to create 5 separate programs that use conditions and iterations to check strings: 1) check if a string has uppercase letters, 2) check if a string has spaces, 3) count words in a string, 4) invert a string, and 5) check if a string is a palindrome. Additionally, students are asked to download two Java files, make additions to the code, and answer two analysis questions.

Uploaded by

ami_haroon
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
21 views1 page

CSCI213 Spring2013 Workshops Lab 3

This document outlines the lab assignment for a Java programming course. Students are asked to create 5 separate programs that use conditions and iterations to check strings: 1) check if a string has uppercase letters, 2) check if a string has spaces, 3) count words in a string, 4) invert a string, and 5) check if a string is a palindrome. Additionally, students are asked to download two Java files, make additions to the code, and answer two analysis questions.

Uploaded by

ami_haroon
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 1

CSCI213:JavaProgrammingandObjectOrientedDesign Spring2013 Lab3

Conditions&Iterations
You are required to develop code by yourself for the following cases. Make sure each is a separate program meant to run independent of theothers. CheckifaninputString(viaargs[])hasuppercase Checkifaninputstring(viauserinput)hasaspace Countthenumberofwordsinastring InvertaString CheckifaStringisapalindrome(i.e.canreadfromlefttorightorright toleft).Examples:APA,ABBA,AblewasIereIsawElba

Homework
DownloadAirport.javaandcompletethecodebyaddingnecessarylines ofcodeat1,2,3,4,5,6. DownloadAirportClient.javaandcompletethecodebyaddingnecessary linesofcodeat1,2,3. 1. Explain code in AirportClient in terms of instance variables and methods. 2. What can you conclude based on the results of the comparisons betweentwoobjects?

You might also like