This file contains 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
[ | |
{ | |
"gender":"male", | |
"name":{ | |
"title":"Mr", | |
"first":"Kaspian", | |
"last":"Sund" | |
}, | |
"location":{ | |
"street":{ |
This file contains 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
[{"id":1,"stock_name":"InfoSonics Corp","stock_industry":"Electronic Components","currency_code":"CNY","stock_sector":"Consumer Non-Durables","stock_symbol":"IFON"}, | |
{"id":2,"stock_name":"Energen Corporation","stock_industry":"Oil & Gas Production","currency_code":"XOF","stock_sector":"Energy","stock_symbol":"EGN"}, | |
{"id":3,"stock_name":"Wipro Limited","stock_industry":"EDP Services","currency_code":"ZAR","stock_sector":"Technology","stock_symbol":"WIT"}, | |
{"id":4,"stock_name":"ClearBridge Energy MLP Fund Inc.","stock_industry":"n/a","currency_code":"SOS","stock_sector":"n/a","stock_symbol":"CEM"}, | |
{"id":5,"stock_name":"Hertz Global Holdings, Inc","stock_industry":"Rental/Leasing Companies","currency_code":"UAH","stock_sector":"Consumer Services","stock_symbol":"HTZ"}, | |
{"id":6,"stock_name":"Nuveen Real Asset Income and Growth Fund","stock_industry":"n/a","currency_code":"ARS","stock_sector":"n/a","stock_symbol":"JRI"}, | |
{"id":7,"stock_name":"KKR & Co. L.P.","stock_industry":"n/a","currency_code":"CNY","stock_se |
This file contains 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
[{"id":1,"first_name":"Margie","last_name":"Sleany","email":"msleany0@webnode.com","gender":"Female","ip_address":"24.249.117.130"}, | |
{"id":2,"first_name":"Rosaline","last_name":"Philcock","email":"rphilcock1@mediafire.com","gender":"Female","ip_address":"190.133.141.91"}, | |
{"id":3,"first_name":"Zelma","last_name":"Galfour","email":"zgalfour2@topsy.com","gender":"Female","ip_address":"239.127.238.240"}, | |
{"id":4,"first_name":"Aprilette","last_name":"de Voiels","email":"adevoiels3@biblegateway.com","gender":"Female","ip_address":"234.64.165.23"}, | |
{"id":5,"first_name":"Homere","last_name":"Boij","email":"hboij4@columbia.edu","gender":"Male","ip_address":"171.227.228.222"}, | |
{"id":6,"first_name":"Korey","last_name":"Yakov","email":"kyakov5@friendfeed.com","gender":"Male","ip_address":"82.78.6.158"}, | |
{"id":7,"first_name":"Janice","last_name":"Yewman","email":"jyewman6@networkadvertising.org","gender":"Female","ip_address":"50.233.172.21"}, | |
{"id":8,"first_name":"Chadwick","last_name":"Proschke","email":"cproschke7@fli |
This file contains 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
[ | |
{ | |
"gender":"male", | |
"name":{ | |
"title":"Mr", | |
"first":"Kaspian", | |
"last":"Sund" | |
}, | |
"location":{ | |
"street":{ |
This file contains 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
import React , {Fragment} from "react"; | |
import Axios from "axios"; | |
class CurrencyCodes extends React.Component{ | |
constructor(props) { | |
super(props); | |
this.state = { | |
currencyData : null, | |
currencies : [], | |
selectedCurrency : '', |
This file contains 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
public String everyNth(String str, int n) { | |
String temp = str.substring(0,1); | |
for(int i = n ; i<str.length(); i += n) { | |
temp += str.charAt(i); | |
} | |
return temp; | |
} |
This file contains 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
public String endUp(String str) { | |
if(str.length() >= 3) { | |
return str.substring(0,str.length() - 3) + str.substring(str.length() - 3).toUpperCase(); | |
} | |
else { | |
return str.toUpperCase(); | |
} | |
} |
This file contains 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
public boolean lastDigit(int a, int b) { | |
return (a % 10 == b % 10); | |
} |
This file contains 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
public boolean stringE(String str) { | |
int count = 0; | |
for(int i = 0; i< str.length(); i++) { | |
if(str.charAt(i) == 'e') { | |
count++; | |
} | |
} | |
return (count >= 1 && count <= 3); | |
} |
This file contains 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
public int max1020(int a, int b) { | |
boolean aInRange = (a >= 10 && a <= 20); | |
boolean bInRange = (b >= 10 && b <= 20); | |
if(aInRange && bInRange) { | |
if(a > b) { | |
return a; | |
} | |
else { | |
return b; | |
} |