This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
The options are coming from combo boxes (JavaFX) where the user can select various styles. Each style needs to be more detailed in order for the image to come out well so that's where this horrendous switch statement came in lmao
True I think I'll try putting them in a map or dictionary, thank you! I appreciate it
Data Structures was not my favorite class haha. But you're right, I do need to go over them again. Also haven't coded in Java in like 4 years lol.
Have YOU ever heard of someone being new to something? Or being rusty on something? Get off your smartass high horse thinking you're the zenith of intelligence. Dick.
If you read my comment maybe you would know lol
The switch case is around 200 lines lollll, what my program does is the user can select various styles from a variety of combo boxes (ex: one for period of time, one for art style, one for theme, etc.). Once they select their options from the combo boxes, I use method getPrompt() (this is the one with the giant switch in it) to get the actual style. The styles are then concatenated and are eventually passed into the imageToImageGeneration() method which handles the API call. So each case in the switch is a different option in one of the combo boxes, wasn't sure the best way to handle that haha.
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- i.redd.it/f3tv2oir353c1....
I will try that thanks so much!!! I haven't coded with Java in years and I'm a college student so I really appreciate the advice.