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
| /** | |
| * This method displays the given price on the screen. | |
| */ | |
| private void displayPrice(int number) { | |
| TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
| priceTextView.setText(NumberFormat.getCurrencyInstance().format(number)); | |
| } |
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
| package com.mwhive.kotlTraining | |
| import java.util.ArrayList | |
| import java.util.Arrays | |
| val solutionList: ArrayList<String> = arrayListOf() | |
| fun main(args: Array<String>) { | |
| val numArray = arrayOf(0,1,3,2) // <-- изначальный массив | |
| val target = 5 // <-- цель |
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
| package com.mwhive.kotlTraining | |
| //Второе задание, которое делать не обязательно :) | |
| val passwordList: ArrayList<String> = arrayListOf() | |
| fun main(args: Array<String>) { | |
| val charArray = charArrayOf('a', 'b', 'c', 'd', 'e') | |
| val passLength = 3 | |
| findAllPasswords(charArray, passLength) | |
| println("Overall number of possible passwords of length $passLength from charset of length ${charArray.size} is: ${passwordList.size} ") |
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
| val passwordList: ArrayList<String> = arrayListOf() | |
| fun main(args: Array<String>) { | |
| val charArray = charArrayOf('a', 'b', 'c') | |
| val passLength = 3 | |
| findAllPasswords(charArray, passLength) | |
| println("Overall number of possible passwords of length up to $passLength from charset of length ${charArray.size} is: ${passwordList.size} ") | |
| println(passwordList.toString()) | |
| } |
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
| import java.util.ArrayList | |
| import java.util.Arrays | |
| //val solutionList: ArrayList<String> = arrayListOf() | |
| fun main(args: Array<String>) { | |
| val numArray = arrayOf(0,1,3,2) // <-- изначальный массив | |
| val target = 5 // <-- цель | |
| sumUp(ArrayList(Arrays.asList(*numArray)), target) | |
| // println(solutionList.toString()) |
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
| org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:94) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:89) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34) | |
| at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110) | |
| at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) | |
| at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) | |
| at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(D |
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
| 2019-01-15 14:23:12.443 11141-15475/net.osmand E/net.osmand: TransportIndexRepositoryBinary Disk error | |
| com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length. | |
| at com.google.protobuf.CodedInputStream.skipRawBytes(CodedInputStream.java:932) | |
| at net.osmand.binary.BinaryMapIndexReader.skipUnknownField(BinaryMapIndexReader.java:464) | |
| at net.osmand.binary.BinaryMapTransportReaderAdapter.skipUnknownField(BinaryMapTransportReaderAdapter.java:35) | |
| at net.osmand.binary.BinaryMapTransportReaderAdapter.initializeStringTable(BinaryMapTransportReaderAdapter.java:422) | |
| at net.osmand.binary.BinaryMapIndexReader.searchTransportIndex(BinaryMapIndexReader.java:572) | |
| at net.osmand.plus.resources.TransportIndexRepositoryBinary.searchTransportStops(TransportIndexRepositoryBinary.java:53) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| private void setupSelectRouteRecalcDistance(PreferenceScreen screen) { | |
| Float[] entryValues = new Float[] {10.f, 20.0f, 30.0f, 50.0f, 100.0f, 200.0f, 500.0f, 1000.0f, 1500.0f}; | |
| String[] entries = new String[entryValues.length]; | |
| entries[0] = getString(R.string.shared_string_not_selected); | |
| for (int i = 1; i < entryValues.length; i++) { | |
| entries[i] = entryValues[i].intValue() + " " + getString(R.string.m) + " (" + Math.round(entryValues[i] / 0.3048f) + " " + getString(R.string.foot) + ")"; | |
| } | |
| ListPreferenceEx routeRecalculationDist = (ListPreferenceEx) findPreference(settings.ROUTE_RECALCULATION_DISTANCE.getId()); | |
| routeRecalculationDist.setEntries(entries); |
OlderNewer