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.example; | |
import java.util.Stack; | |
public class Main { | |
public static final char OPENING_PARENTHESES = '('; | |
public static final char CLOSING_PARENTHESES = ')'; | |
public static void swap(char[] string, int i, int j) { |
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 glob | |
import os | |
import sys | |
from os import path | |
from os.path import expanduser | |
# CLion Activator v1.2 | |
# By congard | |
# https://github.com/congard | |
# http://congard.pp.ua/support-me |
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 javax.swing.*; | |
public class GUI { | |
public static void runGui() { | |
System.out.println("----------------------- Hello From GUI -----------------------"); | |
String strObjectMass = JOptionPane.showInputDialog(null, "Enter Object Mass"); | |
double objectMass = 0.0; | |
try { |
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
Spinner spinner = (Spinner)findViewById(R.id.mySpinner); | |
List<String> list = Arrays.asList(getResources().getStringArray(R.array.state)); | |
ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); | |
spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); | |
spinner.setAdapter(spinnerAdapter); | |
spinnerAdapter.add("DELHI"); | |
spinnerAdapter.notifyDataSetChanged(); |
NewerOlder