text
stringlengths
10
2.72M
import java.util.Stack; public class Invalidparen { public static void main(String[] args) { System.out.println(new Invalidparen().isValid(")")); } public boolean isValid(String s) { Stack<Character> stack = new Stack<Character> (); for (char ch :s.toCharArray()){ if(ch == ...
package jogadoresTreinamento; public class JogadorDeFutebol { private String nome; private int energia,alegria,gols, experiencia; public JogadorDeFutebol(String nome,int energia, int alegria, int gols, int experiencia){ this.nome = nome; this.energia = energia; this.alegria = alegri...
package valatava.lab.warehouse.exeption; /** * @author Yuriy Govorushkin */ public class InvalidPasswordException extends RuntimeException { public InvalidPasswordException() { super("Incorrect password"); } }
package ua.com.goit.kyrychok.dao; import ua.com.goit.kyrychok.domain.ProjectEvent; import java.util.List; public interface ProjectEventDao { List<ProjectEvent> fetch(int projectId); }
package net.drs.myapp.dao; import java.util.List; import net.drs.myapp.dto.WedDTO; import net.drs.myapp.exceptions.MatrimonialException; import net.drs.myapp.model.Wed; public interface IMatrimonialServiceDAO { List viewActiveProfiles() throws MatrimonialException; List<Wed>getAllWedProfiles()...
package com.fleet.seg.util; import com.huaban.analysis.jieba.JiebaSegmenter; import com.huaban.analysis.jieba.SegToken; import java.util.ArrayList; import java.util.List; /** * Jieba 分词器 * * @author April Han */ public class JiebaUtil { public static List<String> indexSeg(String text) { List<String>...
package pers.pbyang.entity; import java.sql.Date; public class PicNews { private int id; private String title; private Date upTime; private String from1; private String content; private String author; private int traffic; private String picplace; public String getPicplace() { return picplace; } public ...
package org.nmrg.entity.common; import java.util.HashMap; import org.nmrg.entity.BaseEntity; /** * 邮件 * Created by admin on 2017/9/27. */ public class EmailEntity extends BaseEntity { // --- 邮件接收方 private String toAddress; // --- 邮件主题 private String subject; // --- 邮件内容 ...
package com.estrelladelsur.miequipo; import java.util.ArrayList; import com.estrelladelsur.R; import com.estrelladelsur.abstractclases.Anio; import com.estrelladelsur.abstractclases.Mes; import com.estrelladelsur.abstractclases.Torneo; import com.estrelladelsur.adaptadores.AdaptadorRecyclerTorneo; import com.estrella...
import java.awt.Color; import javax.swing.JPanel; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.XYPlot; import org.jfree.data.time.Millisecond; import org.jfree.data.time.TimeSeries; import ...
package cn.canlnac.onlinecourse.domain.interactor; import java.util.Map; import javax.inject.Inject; import cn.canlnac.onlinecourse.domain.executor.PostExecutionThread; import cn.canlnac.onlinecourse.domain.executor.ThreadExecutor; import cn.canlnac.onlinecourse.domain.repository.ChatRepository; import rx.Observable...
/** * */ package work.waynelee.captcha; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;...
package com.tencent.mm.protocal.c; import com.tencent.mm.bk.a; public final class bon extends a { public int hcE; public String jSA; public int lOH; public String rTW; public int rXs; public String rdS; public int rdq; public String smB; public int smg; public int smh; publ...
package com.flurry.proguard; import org.junit.Assert; import org.junit.Test; import java.io.IOException; import java.util.Collections; import java.util.Properties; import java.util.UUID; /** * Test uploads */ public class UploadMappingTest { private static final String FLURRY_TOKEN = "FLURRY_TOKEN"; privat...
/** * 17.10. Find Majority Element LCCI * "Easy" * 摩尔投票,非主要数就减,主要数就加 */ public class Solution { public int majorityElement(int[] nums) { int candidate = -1, count = 0, n = nums.length; for (int i : nums) { if (count == 0) { candidate = i; } if ...
package com.dev.jdbc; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Scanner; public class JDBCInsertion { public static void main(String[] args) { Connection conn = null; Prepa...
package com.diozero.internal.provider.firmata; /*- * #%L * Organisation: diozero * Project: diozero - Firmata * Filename: FirmataServoDevice.java * * This file is part of the diozero project. More information about this project * can be found at https://www.diozero.com/. * %% * Copyright (C) 2016 - ...
package com.wrapp.floatlabelededittext; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.text.Editable; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.wid...
import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * SalesVan inherits from WareHouse and creates a van object that will * store inventory from the WareHouse. * * @author ZZywusko * @version Project 2 */ public class SalesVan extends WareHouse { // instance variables - replace t...
package com.ftd.schaepher.coursemanagement.activities; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.os.Environment; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.CardView; import a...
package unlinked; import java.util.ArrayList; public class Vehicle { private String VSAMP; private String SAMPN; private String VEHNO; private String YEAR; private String BODY; private String O_BODY; private String FUEL; private String O_FUEL; private String EZPAS; private String CNTV; private String O_C...
/* * Copyright by Deppon and the original author or authors. * * This document only allow internal use ,Any of your behaviors using the file * not internal will pay legal responsibility. * * You may learn more information about Deppon from * * * http://www.deppon.com * */ package com.goodhealth.framewo...
package com.it.userportrait.analy; import java.util.Date; import java.util.List; public class UserGroupEntity { private long userid; private Date ordertime; private String productTypeId; private double amount; private String groupField; private List<UserGroupEntity> list; private double ...
package com.tt.miniapp.impl; import android.app.Application; import android.content.Context; import com.tt.miniapphost.AppbrandContext; import com.tt.miniapphost.host.HostDependManager; import com.tt.option.g.b; import com.tt.option.g.c; public class HostOptionFavoriteDependImpl implements c { public void...
package com.example; /** * Created by shivam on 27/02/16. */ public interface IAfterLoginActions { public void showNextScreen(String message); public void showFailedScreen(String reason); }
package com.tencent.mm.plugin.chatroom.ui; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import com.tencent.mm.storage.bd; class SelectMemberChattingRecordUI$1 implements OnItemClickListener { final /* synthetic */ SelectMemberChattingRecordUI ...
package com.tencent.mm.plugin.brandservice.b; import com.tencent.mm.ab.b; import com.tencent.mm.ab.b.a; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.network.q; import com.tencent.mm.protocal.c.ai; import com.tencent.mm.protocal.c.blm; import com.tencent.mm.protocal.c.bln; import com.te...
package com.rc.tasks; /** * Created by song on 14/06/2017. */ public class MessageResendTask { ResendTaskCallback listener; public void setListener(ResendTaskCallback listener) { this.listener = listener; } public void execute(String messageId) { new Thread(new Runnable() ...
package scripts; import java.awt.*; import org.tribot.api2007.Inventory; import org.tribot.api2007.types.RSItem; import javax.swing.*; import javax.swing.border.CompoundBorder; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; import java.awt.event.ActionEvent; import java.awt.event.Actio...
package com.accp.domain; public class Trademark { private String trkid; private String trkname; private String trkzimu; public String getTrkid() { return trkid; } public void setTrkid(String trkid) { this.trkid = trkid; } public String getTrkname() { return ...
package com.jim.multipos.ui.customers; import com.jim.multipos.core.Presenter; public interface CustomersActivityPresenter extends Presenter { }
package com.xuecheng.framework.advice; import com.google.common.collect.ImmutableMap; import com.xuecheng.framework.exception.CustomerException; import com.xuecheng.framework.model.response.CommonCode; import com.xuecheng.framework.model.response.ResponseResult; import com.xuecheng.framework.model.response.ResultCode;...
package com.smxknife.java2.thread.executorservice.demo03; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit; /** * @author smxknife * 2020/3/6 */ public class _Run2_ThreadPoolMonitor { public static void main(String[] args) throws InterruptedException { _Run2_ThreadPoolMonitor ru...
package service; import dto.BookDetailsDto; import exceptions.BookNotFoundException; public interface BookService { public BookDetailsDto getBookById(long id); public long getBooksByAuthor(String author); public BookDetailsDto createNewBook(String title, String author); public BookDetailsDto updat...
package com.designPattern.SOLID.srp.solution; public class NotificationService { public void sendOTP(String medium) { if(medium.equals("email")) { // SEND OTP ON EMAIL } else if(medium.equals("mobile")) { // SEND OTP ON MOBILE } } }
package com.cg.ibs.spmgmt.bean; import java.time.LocalDate; import java.util.Arrays; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import...
import java.util.Scanner; class mes_case { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int mes; System.out.println("Digite o mes de 1 a 12 "); mes = sc.nextInt(); switch (mes) { case 1: System.out.printl...
package com.example.lnctmeet.view; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import androidx.viewpager.widget.ViewPager; impor...
package rontikeky.beraspakone.konfirmasi; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.wi...
package info.blockchain.wallet.payload; import com.blockchain.api.services.NonCustodialBitcoinService; import com.blockchain.api.bitcoin.data.BalanceDto; import com.blockchain.api.bitcoin.data.MultiAddress; import info.blockchain.wallet.ImportedAddressHelper; import info.blockchain.wallet.WalletApiMockedResponseTest; ...
package com.qcwp.carmanager.ui; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import com.blankj.utilcode.constant.TimeConstants; import com.blankj.utilcode.util.TimeUtils; import com...
// Virginia Tech Honor Code Pledge: // // As a Hokie, I will conduct myself with honor and integrity at all times. // I will not lie, cheat, or steal, nor will I accept the actions of those // who do. // -- Musaab Elsheikh (melsheikh) import sofia.micro.*; import sofia.graphics.Color; // -----------------------------...
package com.tencent.mm.protocal.c; import com.tencent.mm.bk.a; import java.util.LinkedList; public final class amo extends a { public int create_time; public int huK; public String hwg; public int peW; public String rIw; public String rPn; public bao rPo; public int rPp; public int...
/* * $Id: $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "L...
package com.microsilver.mrcard.basicservice.controller; import com.microsilver.mrcard.basicservice.service.OrderService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springf...
package arrayJava; // print a grid with the help of array public class ArrayGrid { public static void main(String[] args) { int a[][] = new int [10][10]; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { System.out.printf("%2d",a[i][j]); } System.out.pr...
/* * Copyright (C), 2013-2015, 上海汽车集团股份有限公司 * FileName: MailVo.java * Author: baowenzhou * Date: 2015年01月05日 下午1:34:06 * Description: //模块目的、功能描述 * History: //修改记录 * <author> <time> <version> <desc> * 修改人姓名 修改时间 版本号 描述 */ package com.xjf.wemall.a...
/* * Copyright 2011-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package org.javamisc.jee.entitycrud; import java.lang.reflect.Method; import java.lang.reflect.Constructor; import java.lang.reflect.Type; import java.lang.reflect.ParameterizedType; import java.lang.reflect.TypeVariable; import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.uti...
package com.example.nihar.delta; public class User { public String username; public Boolean boolSpeakPeriodic=true; public Boolean boolSpeechInput=true; public Boolean boolDetectLabels=true; public Boolean boolDetectExpressions=true; public String Name; public Boolean LocationAccess = true;...
import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class IteratorIterableTest { private GenericStack<Integer> s; private GLIterator<Integer> sIterator; @BeforeEach void init() { s = new GenericStack<Integer...
/** * */ package alg.sort; import java.util.Arrays; /** * 归并排序. * 改进点:当元素数在一定范围内时,避免递归,直接插入排序 * 稳定 * @title MergeSort */ public class MergeSort { public static void main(String[] args) { // int[] a = {1}; // int[] a = {-1, 7}; // int[] a = {8, 2}; int[] a = {4, 1, 1, 6, 9, 2, ...
import org.apache.commons.math3.distribution.NormalDistribution; public class TestGaussian { public static void main(String [] args) { double mean = 1337215609117.184800; double variance = 82079460604218752.000000; NormalDistribution nd = new NormalDistribution(mean, Math.sqrt(variance)); doubl...
package designPattern2; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.testng.annotations.Test; public class FireFoxBrowser extends Browser{ @Test public void getBrowser() { System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir")+"/Driver/ge...
package controllers; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.ServletException; import java.io.IOException; import java.util.ArrayList; import models.User; import mod...
package com.tt.miniapp.component.nativeview.game; import android.graphics.drawable.Drawable; import android.view.View; import android.view.ViewGroup; import com.tt.miniapp.thread.ThreadUtil; public class GameBtnImage extends GameButton { private RoundedImageView mImageView; GameBtnImage(RoundedImageV...
package lesson04; public class Season04 { //CŨNG LÀ VÍ DỤ 2(season): TẠO ENUM BÊN NGOÀI LỚP(CLASS) VÀ KẾT HỢP VỚI MỘT CLASS KHÁC ĐỂ HIỂN THỊ NỘI DUNG public static void main(String[] args) { SeasonSP04 winter = SeasonSP04.WINTER; SeasonSP04 summer = SeasonSP04.SUMMER; System.out.printl...
package com.fhzz.psop.service; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import com.fhzz.psop.entity.UserInfo; @Feign...
package schr0.tanpopo.item; import net.minecraft.item.Item; import schr0.tanpopo.init.TanpopoItems; public class ItemAttachmentMattock extends ItemModeToolAttachment { public ItemAttachmentMattock() { super(); } @Override public Item getDefaultModeTool() { return TanpopoItems.TOOL_MATTOCK; } }
package net.sssanma.mc.usefulcmd; import net.minecraft.server.v1_7_R4.Item; import net.minecraft.server.v1_7_R4.ItemStack; import net.minecraft.server.v1_7_R4.RecipesFurnace; import net.minecraft.server.v1_7_R4.TileEntityFurnace; import net.sssanma.mc.ECore; import net.sssanma.mc.utility.NMSUtil; import org.bukkit.Cha...
package com.example.supplico_login; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class pdt_card extends AppCompatActivity { TextView hometext; @Override protected void onCreate(B...
package model.impl; import java.util.Vector; import model.AccessPoint; import model.GridPoint; import model.PathLossModel; import model.ReceiverCardImpl; import model.Room; import model.Trajectory; import model.TxRadioImpl; import model.Wall; public class FreeSpaceLossModelImpl implements PathLossModel { private do...
package gr.athena.innovation.fagi.core.function.geo; import gr.athena.innovation.fagi.specification.Namespace; import gr.athena.innovation.fagi.specification.SpecificationConstants; import org.apache.jena.datatypes.RDFDatatype; import org.apache.jena.rdf.model.Literal; import org.apache.jena.rdf.model.ResourceFactory;...
package es.crud.spring.boot.thymeleaf.dao; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import es.crud.spring.boot.thymeleaf.entity.Employee; public interface EmployeeRespository extends JpaRepository<Employee, Integer> { public List<Employee> findAllByOrderByLastNa...
package com.guli.acl.service.impl; import com.guli.acl.entity.User; import com.guli.acl.mapper.UserMapper; import com.guli.acl.service.UserService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; /** * <p> * 用户表 服务实现类 * </p> * * @author dtt * @s...
package com.biblio.theque.groupe8.domain; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import javax.persistence.*; import javax.validation.constraints.*; import java.io.Serializable; /** * A Theme. */ @Entity @Table(name = "theme") @Cache(usage = CacheConcurre...
package jankenpon; /** * Possiveis Resultados de uma Partida de JanKenPon. * * @author Ana Luiza Cunha * */ public enum Resultado { VITORIA, DERROTA, EMPATE; }
package jp.astra.cameramap; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import jp.astra.cameramap.helper.ActivityUtil; import jp.astra.cameramap.helper.ArrayUtil; import jp.astra.cameramap.helper.Dictionary; import jp.astra.cameramap.helper.Logger; import jp.astra.cameramap.helper.Notif...
package com.hesoyam.pharmacy.medicine.service.impl; import com.hesoyam.pharmacy.medicine.dto.MedicineDiscountInfoDTO; import com.hesoyam.pharmacy.medicine.dto.MedicineSearchDTO; import com.hesoyam.pharmacy.medicine.dto.MedicineSearchResultDTO; import com.hesoyam.pharmacy.medicine.exceptions.InvalidDeleteMedicineReques...
package LeetCode; import java.util.ArrayList; import java.util.List; public class Sample_2 { static List<Integer> oddNumbers(int l, int r) { List<Integer> li = new ArrayList<>() ; while(l<=r){ if(l%2!=0){ li.add(l); } l++; } retu...
/** * ファイル名 : PaginationController.java * 作成者 : minh.nt * 作成日時 : 2018/5/31 * Copyright © 2017-2018 TAU Corporation. All Rights Reserved. */ package jp.co.tau.web7.admin.supplier.controllers; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;...
package com.yuan.model; import com.yuan.prefence.FileConstants; import com.yuan.prefence.UrlConstants; import com.yuan.unit.FileUtils; import com.yuan.unit.HttpUtils; import com.yuan.unit.JsonUtils; import android.content.Context; import java.io.IOException; import java.io.StreamCorruptedException; import java.util...
package mx.edu.ittepic.practica3_u4_denisseespinosa; /** * Created by denisseyea on 20/11/18. */ public class Tortuga { int s,c = 1,p; public void jTortuga(){ p = (int) (Math.random() * 100) + 1; if (p <= 50){ s = 1; }else if (p <= 80){ s = 3; }else ...
package com.adelean.elasticsearch.word2vec.upload; import org.elasticsearch.action.Action; import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionRequestBuilder; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.ActionResponse; import org.el...
package com.base.ifocus.myapplication.Fragment; /** * Created by iFocus on 10-09-2015. */ import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.view.ViewPager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.Re...
import java.util.Random; public class Addressing{ public String AlphanumericStringGenerator(int length) { private int leftLimit = 48; private int rightLimit = 122; private int stringLength = length; Random random = new Random(); Addressing(){ } String alphanumericString = rando...
package net.xycq.campus.legend.base.util; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriv...
package br.com.scd.demo.session; import static org.junit.Assert.assertEquals; import org.junit.Test; import org.springframework.test.util.ReflectionTestUtils; import br.com.scd.demo.api.session.dto.SessionRequest; import br.com.scd.demo.session.SessionForInsert; import br.com.scd.demo.session.SessionForInsertFactory...
package birkann.com.kanaltakip.DbObject; /** * Created by birkan on 23.10.2016. */ public class ChannelDetails { private String id; private String desc; private String cName; private String profileImg; private String channelImg; public ChannelDetails(String id, String desc, String name, St...
package utilities; public class Holder<T> { private T item; private int hashcode; public Holder(T item) { this.item = item; this.hashcode = item.hashCode(); } public void setItem(T item) { this.item = item; } public T getItem() { return this.item; } /* * Object Overrides */ @Overr...
package com.snewworld.listsample; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import com.snewworld.listsample.adapter.MainPagerAdapter; /** * Created by ...
package co.edu.poli.sistemasdistribuidos.votaciones.controller; import co.edu.poli.sistemasdistribuidos.votaciones.entities.VotoEntity; import co.edu.poli.sistemasdistribuidos.votaciones.service.VotoService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Au...
package net.suntrans.haipopeiwang.mdns.api; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Handler; import android.os.Message; import net.suntrans.haipopeiwang.mdns.helper.CommonFunc; import net.suntrans.haipopeiwang.mdns.helper.MDNSErrCode; i...
package com.fulvio.persistencia.entities; import java.io.Serializable; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.OneToOne; @SuppressWarnings("serial") @Entity public class Direccion implements Serializable{ @Id private int id; pri...
package interfce; import pannels.PanelInicio; import pannels.PanelNovoJogo; public class TelaInicial { public static Janela janela1; public static PanelInicio panelLogin; /*public static void esconderTela(){ janela.setVisible(false); }*/ public TelaInicial(){ setJanela(); setPanelLogin(); ...
import java.util.regex.Pattern; import java.util.regex.Matcher; public class Validator { public static String validatePhoneNumber (String s) { s=s.trim(); if(s.length()==11) { if(s.startsWith("01")) { if(Character.getNumericValue(s.charAt(2))==2 || Character.getNumericValue(s.charAt(2))==0 ) {/*(C...
package pl.finapi.paypal.model; import org.apache.commons.lang3.builder.ToStringBuilder; public class BuyerInfo { public static final BuyerInfo EMPTY_BUYER = new BuyerInfo("", "", "", ""); private final String companyName; private final String addressLines1; private final String addressLines2; priva...
package level_1; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class AchivementInPercentageTest { // { // "objectives": [ // { "id": 1, "start": 0, "ta...
package stringutility; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; import static stringutility.StringUtility.*; class StringUtilityTest { @Test void isVowel_Vowel_ReturnTrue() { Assertions.assertAll( () -> assertTrue(isVowel(...
package fishy.sample.lanchatsample; import android.app.Dialog; import android.content.DialogInterface; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import and...
package LC0_200.LC150_200; public class LC182_Duplicate_Emails { // mysql }
package com.project.utilImpl; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import com.project.util.util; public class utilImpl implements util { private Connection con = null; public Connection getConnection() { try { Class.forName("com.mysql.jdbc.Driver");...
package com.pangpang6.books.leecode.ndatasum; import com.alibaba.fastjson.JSON; import java.util.Arrays; public class TwoSum { public static void main(String[] args) { int[] d1 = {1, 2, 3, 4, 5, 6}; System.out.println(JSON.toJSONString(twoSum(d1, 5))); } public static int[] twoSum(int[]...
package devas.com.whatchaap; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.EditText; import an...
package mg.egg.eggc.compiler.egg.java; import mg.egg.eggc.runtime.libjava.*; import mg.egg.eggc.compiler.libegg.base.*; import mg.egg.eggc.compiler.libegg.java.*; import mg.egg.eggc.compiler.libegg.egg.*; import mg.egg.eggc.compiler.libegg.mig.*; import mg.egg.eggc.compiler.libegg.latex.*; import mg.egg.eggc.compiler.l...
package org.maven.ide.eclipse.ui.common.authentication; import java.beans.Beans; import java.io.File; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; impor...
package com.leetcode.array; public class ArrayUtil { public static void printArray(int[] array) { StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < array.length; i++) { if (stringBuilder.length() > 0) { stringBuilder.append(","); } ...
package com.collection; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import static com.sun.xml.internal.fastinfoset.util.ValueArray.MAXIMUM_CAPACITY; /** * map test */ public class MapDemo { private static int RESIZE_STAMP_BITS = 16; public static void mai...
package com.koreait.captcha; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import ...
package pl.wiktor.generator; import java.util.Random; public class ArrayGenerator { public void sprawdzCzyPosortowany(int[] ciag) { boolean posortowany = false; for (int i = 1; i < ciag.length; i++) { if (ciag[i - 1] > ciag[i]) { posortowany = false; b...