android_collections's Issues
Your synonym list isn't a double array ...
Here's one from Swift (iOS) :
import Foundation
let synonyms = [
"swift" : ["abrupt", "expeditious", "hasty", "nimble", "quick", "rapid", "speedy", "sudden", "unexpected"],
"objective" : ["detached", "disinterested", "dispassionate", "equitable", "evenhanded", "nonpartisan", "open-minded", "unbiased"],
"calculate" : ["adjust", "appraise", "consider", "count", "determine", "forecast", "gauge", "guess", "measure", "multiply", "reckon", "subtract", "tally", "weigh", "work out"],
"create" : ["build", "conceive", "constitute", "construct", "design", "devise", "discover", "establish", "forge", "form"],
"programming" : ["formulate","itemize","process","schedule", "set", "compute", "compile", "plan out", "supply instructions"],
"storyboard" : ["outline", "representation", "design", "layout", "sketch"],
"start" : ["begin", "commence", "takeoff", "day one", "first step", "square one", "dawn", "kickoff", "inception"]]
Note the synonym word is separate from the synonym list.
There's no distinction between what is to be the synonym in your case and the words to output.
I guess I don't understand since you have a double array but only declare one set of elements.
Suggest maybe the following:
String[][] synonyms = new String[][] { {"swift"}{"abrupt"}, {"swift"}{"expeditious"}, {"swift"}{"hasty"}, {"swift"}{"nimble"}, {"swift"}{"quick"}, {swift}{"rapid"}, {"swift"}{"speedy"}, {"swift"}{"sudden"}, {"swift"}{"unexpected"}};
or maybe ...
String[][] synonyms = new String[][] { {"objective"}{"detached", "disinterested", "dispassionate", "equitable", "evenhanded", "nonpartisan", "open-minded", "unbiased"}};
I uninstalled and reinstalled android studio. Still can't see any buttons/text fields no matter which phone skin I try and which emulator I try to use (x86 ones crash). Blame Windows 10 Home and an AMD processor (different from Intel).
And since I'm rambling anyway, a note on design.
The file handling the i/o should be separate from the calculation. In this case you should have a separate file for the synonym routine. Where I used to work we put everything into small functional chunks so that we wouldn't exceed a McCabe complexity of greater than 10, and when we made a change we wouldn't need to test things irrelevant to the scope of the change.
I knew nothing about apps before I took the Lambda iOS prep course, so I'm not much of a resource.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.