- Java FX development
- Flutter
- Nodejs
- Express
- Mongodb
- Socket.io
- Client side javascript
- Golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
did:3:kjzl6cwe1jw14bgijhc4pt44l89kha5ngkb7v1au4o9y4798kenokfcph94x9ed |
class ResistorColor {
private static final String[] colorArray;
colorArray = new String[]{"black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white"};
int colorCode(String color) {
int index = 0;
for(int i = 0;i < colorArray.length;i++)
{
if(color.equals(colorArray[i]))