Tags:
tag this topic
create new tag
view all tags
---+Hint to determining the operation (Selection lab: Spring 2024) You have two options: 1. Get the operation as a string and then just work with the first character * For this operation, get the string * Then use the *charAt* string function to get the first character (number 0) and assign it to a character variable * You can use a switch statement on a character variable 1. Get the operation as a string and use that * This operation requires the user to be very precise on the input. If the user adds another blank at the end, this might cause a problem. * If you use this option, be sure to use *.equals* in your selection statement * You cannot use a string in a switch statement. For either option, it is best to read the string as an entire line.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2024-01-18
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback