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
{"results":[{"gender":"female","name":{"title":"mrs","first":"lotta","last":"lehtinen"},"location":{"street":"1974 mechelininkatu","city":"ulvila","state":"central ostrobothnia","postcode":37395},"email":"lotta.lehtinen@example.com","login":{"username":"tinygoose949","password":"cowboys1","salt":"GSrmax2l","md5":"58f581a6387914ec7e3e13ba0e2577f3","sha1":"18fd0869e68b1f3d4d933eeef657062b80d0a5fc","sha256":"952383447de775486c26a04e4860b49e284f321aae8d9f7e20be1bfda4bd3385"},"dob":"1979-02-27 15:14:57","registered":"2006-01-10 16:40:09","phone":"09-177-142","cell":"042-238-39-98","id":{"name":"HETU","value":"379-204C"},"picture":{"large":"https://randomuser.me/api/portraits/women/19.jpg","medium":"https://randomuser.me/api/portraits/med/women/19.jpg","thumbnail":"https://randomuser.me/api/portraits/thumb/women/19.jpg"},"nat":"FI"},{"gender":"male","name":{"title":"mr","first":"magnus","last":"pedersen"},"location":{"street":"4111 vesterlundvej","city":"gjerlev","state":"syddanmark","postcode":77458},"email":"magn |
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
package com.suchowitzki.reversearray; | |
public class ReverseList { | |
public static void main(String... args) { | |
Character[] arr = new Character[]{'a', 'b', 'c', 'd', 'e', 'f'}; | |
reverse(arr); | |
System.out.println(Arrays.toString(arr)); | |
Integer[] arr2 = new Integer[]{1, 2, 3, 4, 5}; | |
reverse(arr2); |
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
package com.suchowitzki.reversearray; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.ListIterator; | |
public class ReverseList { |
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 class BoggleSolution { | |
private static int dictionarySize = 0; | |
private static int boggleCols = 0; | |
private static int boggleRows = 0; | |
private static String[] dictionary = {"GEEKS", "FOR", "QUIZ", "GO"}; | |
private static boolean isWord(String str) { | |
for(int i = 0; i < dictionarySize; i++) { | |
if(str.equals(dictionary[i])){ |