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 'package:flutter/widgets.dart'; | |
class Sizes { | |
static MediaQueryData _mediaQueryData; | |
static double screenWidth; | |
static double screenHeight; | |
static double blockSizeHorizontal; | |
static double blockSizeVertical; | |
static double _safeAreaHorizontal; | |
static double _safeAreaVertical; |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyPointerExample()); | |
} | |
class MyPointerExample extends StatefulWidget { | |
@override | |
_MyPointerExampleState createState() => _MyPointerExampleState(); | |
} |
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 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:webview_flutter/webview_flutter.dart'; | |
void main() { | |
runApp(MyApp()); | |
} |
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 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(DropDownExample()); | |
class DropDownExample extends StatefulWidget { | |
DropDownExample() : super(); | |
final String title = "DropDown Demo"; |
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
# custom Android Studio VM options, see https://developer.android.com/studio/intro/studio-config.html | |
-Xms1024m | |
-Xmx4096m | |
-XX:MaxPermSize=1024m | |
-XX:ReservedCodeCacheSize=512m | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=true | |
-Djna.nosys=true |
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
# custom IntelliJ IDEA VM options | |
-Xms1024m | |
-Xmx4096m | |
-XX:MaxPermSize=1024m | |
-XX:ReservedCodeCacheSize=512m | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=100 | |
-ea | |
-Dsun.io.useCanonCaches=false |
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 MostAppear { | |
public static void main(String[] args) { | |
int[] arr = {1, 2, 3, 4, 1, 6, 1, 2, 2, 2, 2, 4, 6}; | |
System.out.println("Max appearance number is " + maxAppearance(arr)); | |
} | |
public static int maxAppearance(int[] arr) { | |
int len = arr.length; | |
int max_count = 1; |
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 javaproblems; | |
public class MaximumProduct { | |
public static void main(String[] args){ | |
int[] arr = {1,2,-3,4,5}; | |
getMaximumNumbers(arr); | |
} | |
public static void getMaximumNumbers(int[] arr){ | |
int len = arr.length; |
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 javaproblems; | |
public class CaptializeChar { | |
public static String getCaptilizeString(String words){ | |
if(words.length()<=0){ | |
return "Invalid String"; | |
} | |
String[] splitWords = words.split("\\ "); |
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 javaproblems; | |
import java.util.Scanner; | |
public class PrintDiffChar { | |
public static void main(String[] args) { | |
String text; | |
int count; | |
char ch; | |
NewerOlder