text
stringlengths
10
2.72M
package com.bbb.composite.product.details; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.time.Duration; import java.time.Instant; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org....
package com.gamemaker.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; @Entity public class PlayerDetails { @Id @GeneratedValue(strategy=Ge...
package com.tencent.mm.plugin.ipcall.ui; import com.tencent.mm.plugin.ipcall.ui.IPCallMsgUI.7; import com.tencent.mm.sdk.platformtools.x; class IPCallMsgUI$7$1 implements Runnable { final /* synthetic */ 7 kwB; IPCallMsgUI$7$1(7 7) { this.kwB = 7; } public final void run() { synchron...
package com.tencent.mm.plugin.freewifi.e; import android.content.IntentFilter; import android.net.ConnectivityManager; import android.os.Looper; import com.tencent.mm.plugin.freewifi.ConnectSsidPasswordHelper.2; import com.tencent.mm.plugin.freewifi.c; import com.tencent.mm.plugin.freewifi.c$a; import com.tencent.mm.p...
package com.yunhe.billmanagement.dao; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.yunhe.billmanagement.entity.FundProviderDebt; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; import org....
public class Kurkure extends Chips { void eat() { System.out.println("eat kurkure"); } }
package com.jvmless.threecardgame.domain.room; public enum GuestState { OK, KICKED, BANNED }
package com.Jsoup; import com.Jsoup.util.GsonBuilderUtil; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.demo.other.BankInfo1; import com.google.gson.Gson; import net.sf.json.JSONArray; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import java.io.IOException; /** * ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pe.gob.onpe.adan.service.Adan.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework....
package com.example.stockspring.controller; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springf...
package com.androidapp.yemyokyaw.movieapp.network; /** * Created by yemyokyaw on 1/5/18. */ public class MovieResponse { }
package de.zarncke.lib.util; import java.io.Serializable; import java.util.concurrent.atomic.AtomicReference; /** * Provides an atomic maximum tracker. * You can put as many values concurrently as you like and you will get the maximum * * @author Gunnar Zarncke <gunnar@zarncke.de> * @param <T> */ pu...
package com.meebu; import android.content.IntentFilter; import android.support.v4.content.LocalBroadcastManager; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.meebu.broadcast.NetworkStateReceiver; public abstract class BaseActivity ex...
package com.ibiscus.myster.web.report; import com.google.common.collect.Lists; import com.ibiscus.myster.model.company.Country; import com.ibiscus.myster.service.data.ReferenceDataService; import com.ibiscus.myster.service.report.MonthInterval; import com.ibiscus.myster.service.report.ReportCriteria; import com.ibiscu...
package com.yougou.dto.output; /** * * @author 郑乔乔 * */ public class ReturnWarehouseOutputDto extends OutputDto { private static final long serialVersionUID = -3547416916611124183L; /** 退回的仓库名称 */ private String warehouseName; /** 退回的仓库地址 */ private String warehouseAddress; /** 退回的邮政编码 */ private Strin...
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner scanner = new Scanner(System.in); List<Integer> numbers = new ArrayList<>(); while(scanner.hasNext()){ numbers.add(scanner.nextInt()); } num...
import java.util.ArrayList; import java.util.Scanner; public class Aaah { public static void main(String[] args) { Scanner nya = new Scanner(System.in); //hiiiiiiiiiiiiy System.out.println(nya.nextLine().length()>=nya.nextLine().length()?"go":"no"); } }
package engine.quiz; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.stereotype.Repository; @Repository public interface QuizRepository extends PagingAndSortingRepository<Quiz, Integer> { }
package BuildZoo; public class AnimalHabitat { private String name; private int numberOfZoos; private boolean nationalPark; public AnimalHabitat(String habitatName) { this.nationalPark = false; this.numberOfZoos = 0; this.name = habitatName; } public String getAnimalHabitatName() { return name; } ...
package Pojos; // Generated Sep 19, 2015 12:30:29 PM by Hibernate Tools 4.3.1 import java.util.Date; import java.util.HashSet; import java.util.Set; /** * Cita generated by hbm2java */ public class Cita implements java.io.Serializable { private Integer idCita; private Medico medico; private Pa...
package com.sunzequn.sdfs.socket.server; import com.sunzequn.sdfs.file.FileMeta; import com.sunzequn.sdfs.node.IDataNodeAction; import com.sunzequn.sdfs.node.NodeInfo; import com.sunzequn.sdfs.socket.info.Ask4File; import com.sunzequn.sdfs.socket.info.KeepAlive; import com.sunzequn.sdfs.socket.info.ServerAlive; impor...
package com.example.jokejavalibrary; import java.util.Random; public class JokesClass { String[] jokes = {"this is joke one", "this is joke two", "this is joke three"}; public String getJoke() { String joke = jokes[new Random().nextInt(jokes.length)]; return joke; } }
package com.techlab.student; import static org.junit.Assert.*; import org.junit.Test; public class ProfessorTest { Professor p2 = new Professor(110, "Kolkata", "15/7/90"); @Test public void testGetId() { int expected = 110; int actual = p2.getId(); assertEquals(expected, actual); } @Test public void te...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package anikolic_zadaca_1; import java.util.List; import java.util.Map; /** * * @author Ana */ public class Anikolic_zadaca_1 { ...
package com.creativewidgetworks.goldparser.engine; import static org.junit.Assert.assertEquals; import org.junit.Test; import com.creativewidgetworks.goldparser.engine.LRAction; import com.creativewidgetworks.goldparser.engine.Symbol; import com.creativewidgetworks.goldparser.engine.enums.LRActionType; import com.cr...
package com.service; import com.domain.Flight; /** * Created by Michał on 2016-12-31. */ public interface FlightService { Flight create(Flight flight); }
package com.kyrutech.kylefyle; import spark.ModelAndView; import spark.template.mustache.MustacheTemplateEngine; import java.io.File; import java.util.*; import static spark.Spark.*;; public class Main { public static void main(String[] args) { port(8080); get("/", (req, res) -> { Ma...
package com.example.nhom11.model; import java.util.Date; public class Shipment { private long id; private String address; private String phone; private Date date; private float price; public Shipment() { super(); } public Shipment(long id, String address, String phone, Date date, float price) { super...
package com.tencent.mm.g.a; public final class qt$a { public int action = 0; }
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public clas...
package com.epam.bd; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.junit.Before; import org.junit.Test; import org.apache.hadoop.mrunit.mapreduce.*; import java.util.Arrays; import static org.junit.Assert.*; public class MapReduceTes...
package com.kakaopay.payments.api.domain.entity; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; @NoArgsConstructor @Entity @Data @Table(name = "PAYMENT_INFO") public class PaymentInfo { @Id @GenericGe...
package projectprogweb.acao; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import projectprogweb.dao.AtividadesDAO; import projectprogweb.dao.UsuarioDAO; import projectprogweb.modelo.Atividade; import projectprogweb.modelo.Usuario; public class CriaAtividade implements ...
package com.tencent.mm.plugin.card.ui; import android.os.Build.VERSION; import android.os.Bundle; import android.os.Looper; import android.view.KeyEvent; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemLongClickListener; import android.widget.ImageView; import andro...
package com.freejavaman; import android.app.Activity; import android.app.PendingIntent; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.telephony.SmsManager; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android....
package com.vilio.nlbs.common.service.impl; import com.vilio.nlbs.apply.service.ApplyService; import com.vilio.nlbs.bps.service.InquiryService; import com.vilio.nlbs.common.service.CommonService; import com.vilio.nlbs.common.service.PretreatmentService; import com.vilio.nlbs.login.service.LoginService; import com.vili...
package ua.nure.timoshenko.summaryTask4.db.bean; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.util.Date; public class UserOrderBeanTest { UserOrderBean uob; @Before public void setUp() { uob = new UserOrderBean(); uob.setId(1); uob...
package instructable.server.dal; import instructable.server.hirarchy.FieldDescription; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.*; /** * Created by Amos Azaria on 21-Jul-15. * Gets all information from DB upon construc...
package lesson4; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Lesson4 { public static void main(String[] args){ helloResponser(); } /** * 4-3 */ public static void helloResponser(){ BufferedReader reader = new BufferedRead...
package com.smxknife.flink.table.demo.v211.demo01; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.table.api.EnvironmentSettings; import org.apache.flink.table.api.bridge.java.StreamTableEnvironment; /** * @author smxknife * 2020/9/2 */ public class Main { pub...
package com.jt.manage.service; import com.jt.common.po.Item; import com.jt.common.po.ItemDesc; import com.jt.common.vo.EasyUIResult; public interface ItemService { EasyUIResult findItemByPage(Integer page,Integer rows); String findItemCatNameById(Long itemId); /** * 新增商品 * @param item * @param desc */ ...
package listaExercicios7; import java.util.Scanner; public class testaFornecedor { public static void main (String args[]) { Scanner leia = new Scanner(System.in); Fornecedor fornecedorTeste = new Fornecedor("Developer Luiz Felipe"); fornecedorTeste.setTelefone("11 98877-6655"); System.out.printf("Forne...
package org.kpu.ticketbox.main; import java.util.Scanner; import org.kpu.ticketbox.cinema.Screen; public class TicketBoxMain { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); TicketBox ticketBox = new TicketBox(); Screen...
package com.example.recyclerview.activity; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; impor...
package cn.canlnac.onlinecourse.data.entity; import com.google.gson.annotations.SerializedName; import java.util.List; /** * 话题. */ public class ChatEntity { @SerializedName("id") private int id; @SerializedName("date") private long date; @SerializedName("title") private String title; ...
package algorithms.sorting; import org.junit.Rule; import org.junit.rules.ExpectedException; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertTrue; public...
package main; import javax.swing.*; import java.awt.*; /** * @author pham minh hoang linh */ public class ChooseButton extends JPanel{ JButton classic; JButton extra, highscore, about, quit; JLabel label; public ChooseButton(){ setBackground(new Color(0,0,0,0)); // ClassicTetris Button ...
package com.isystk.sample.web.front.controller.api.v1.member.post; import com.isystk.sample.common.exception.NoDataFoundException; import com.isystk.sample.common.helper.UserHelper; import com.isystk.sample.common.validator.AbstractValidator; import com.isystk.sample.domain.dao.TPostDao; import com.isystk.sample.domai...
package miage.dbri.bowling; public class Jeu { private Integer lancer1; private Integer lancer2; public Jeu(Integer lancer1) { this.lancer1 = lancer1; } public Jeu(Integer lancer1, Integer lancer2) { this.lancer1 = lancer1; this.lancer2 = lancer2; } public int nbQ...
package leecode.Array; import java.util.ArrayList; import java.util.List; public class 全排列_46 { //看78对回溯算法的讲解来进行写代码,n皇后问题也可以套用回溯框架 /* 但是根据排列问题和组合问题画出的树来看,排列问题的树比较对称,而组合问题的树越靠右节点越少。 在代码中的体现就是,排列问题每次通过visit数组方法来排除在 track 中已经选择过的数字; 而组合问题通过传入一个 start 参数,来排除 start 索引之前的数字。 [] ...
package guru.osgi.embark.shell; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; /** * Wrap a Writer as an OutputStream. * @author Neil Bartlett */ class WriterOutputStream extends OutputStream { private final Writer writer; private final char[] cbuf = new char[1024]; public Wr...
package application.app.myapplication; import android.app.Activity; import android.content.Context; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.load.resource.bitmap.CenterCrop; /** * Description: ImageLoader *...
package com.tencent.mm.plugin.sns.ui; import com.tencent.mm.pluginsdk.ui.tools.f.e; import com.tencent.mm.sdk.platformtools.x; class OfflineVideoView$8 implements e { final /* synthetic */ OfflineVideoView nPk; OfflineVideoView$8(OfflineVideoView offlineVideoView) { this.nPk = offlineVideoView; }...
package corgi.hub.core.mqtt.bean; import corgi.hub.core.mqtt.ServerChannel; /** * Created by Terry LIANG on 2016/12/23. */ public interface HubSession { public boolean isCleanSession(); public String getClientId(); public ServerChannel getChannel(); }
public class HelloWord{ private String name; private String age; public void sayHello(){ } }
package com.tests; import org.openqa.selenium.remote.RemoteWebDriver; import org.testng.Assert; import org.testng.annotations.Test; import com.pageobjects.WordPressHomePageObjects; import com.pageobjects.WordPressLoginPageObjects; import com.utils.Commons; import com.utils.PropertyReaderUtils; import com.utils.Setup;...
package oop; import java.util.RandomAccess; /** * When designing we want to focus on how systems interact and not the details of * their functionality. * "What are we doing, not how are we doing it". * * We have two mechanisms to accomplish this kind of structure in Java. * * 1. abstract class - Concept l...
package com.se.details; import com.se.details.dto.*; import com.se.details.services.StatisticsFunctions; import com.se.details.services.strategy.PartdetailsStrategy; import org.springframework.stereotype.Service; import java.util.*; /** * @author MAHMOUD_ABDELHAKAM */ @Service public class PartdetailsMicroserviceC...
package queue; import java.util.LinkedList; public class Solution { LinkedList<Integer> in; //insert into in stack LinkedList<Integer> out; //remove from out stack public Solution(){ in = new LinkedList<Integer>(); out = new LinkedList<Integer>(); } public Intege...
package com.mfm_app.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class PrimaryBodypartList { @Id @Column(name = "id") @GeneratedValue(strategy = GenerationT...
package ru.mmk.okpposad.server.domain; import java.io.Serializable; import java.util.Date; public class Posad implements Serializable { private static final long serialVersionUID = 1L; private int id; private int rowNumber; private Date date; private int meltNum; private String mark; private in...
package com.dxt2.dagger2demo; import javax.inject.Inject; /** * Created by Administrator on 2018/5/29 0029. */ public class User { String name; @Inject public User(){ this.name="Leon"; } }
package com.smxknife.springdatajpa.model.ent; import com.smxknife.springdatajpa.model.Item; import lombok.Getter; import lombok.Setter; import javax.persistence.MappedSuperclass; /** * @author smxknife * 2020/11/19 */ @Getter @Setter @MappedSuperclass public class EntItem extends Item { }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package web; import dao.UserDAO; import domain.Range; import domain.User; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest;...
/** * Created by jiajia on 2017/4/20. */ public class ListNode<T> { public T value; public ListNode<T> next; public ListNode (T value, ListNode<T> next) { this.value = value; this.next = next; } // public ListNode<T> pre = new ListNode<T>(null ,null); }
package app.oppus.com.myoppus; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.RecyclerView; public class MainActivity extends AppCompatActivity { String[] values = {"Aya","Nursing Sister","GNM Nurse","Physiotherapist","House cleaner"}; RecyclerView...
package pl.edu.wat.wcy.pz.project.server.controller; import lombok.AllArgsConstructor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.messaging.handler.annotation.DestinationVariable; import org.springframework.messaging.handler.annotation.MessageMapping; import org.springframework...
package cat.udl.eps.platx; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; public class...
package jogorodaroda.Classe; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Random; import sun.audio.AudioPlayer; import sun.audio.AudioStream; /** * * @author GAOliveira */ public class Metodos { public void audioInicial() { ...
package trees; import java.util.HashSet; public interface Map<K,V> { /* * returns true if Key is in the Map */ //boolean containsKey(K key); /* * returns the value associated with the key, if Key is in the Map * Otherwise returns null */ V get(K key); /* * inserts the key and re...
package org.murinrad.android.musicmultiply.decoder; import android.util.Log; import org.murinrad.android.musicmultiply.MainActivity; import org.murinrad.android.musicmultiply.decoder.events.MusicPlaybackEventDispatcher; import org.murinrad.android.musicmultiply.decoder.events.OnDataSentListener; import org.murinrad....
package com.serialization; public class MenuChoice { public static final int ADDEMPLOYEE = 1; public static final int DISPLAY = 2; public static final int SAVE = 3; public static final int LOAD = 4; public static final int QUIT = 5; }
/* * fra2015 * https://github.com/geosolutions-it/fra2015 * Copyright (C) 2007-2012 GeoSolutions S.A.S. * http://www.geo-solutions.it * * GPLv3 + Classpath exception * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
public class InsanTest { public static void main(String[] args) { Insan m=new Insan("nicat","salmanov",19); telebe t = new telebe(); System.out.println(m); } }
package com.shoplite.repository; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import com.shoplite.model.Categoria; @Repository public interface ICategoria extends MongoRepository<Categoria,String>{ }
package com.demo.test.utils; import com.demo.test.constant.Constant; import com.demo.test.domain.TokenModel; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springframework.stereotype.Component; import java.nio.charset.StandardCharsets; import java.security.MessageDigest...
package treesTest; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.util.HashMap; import java.util.HashSet; import java.util.Random; import trees.Map; import trees.RangeMap; public class RangeMapTest { public void TestSequentialRange( RangeMap<Integer,Integer> tr...
package com.tencent.mm.plugin.appbrand.widget.input.panel; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; class AppBrandSmileyGrid$1 implements OnItemClickListener { final /* synthetic */ AppBrandSmileyGrid gKQ; AppBrandSmileyGrid$1(AppBran...
package com.example.demo.Generics; public class IntroToJavaGenerics { /* */ public static void main(String[] args) { Product<String> product = new Product<>("Some ID"); Product<Boolean> product2 = new Product<>(true); Product<Integer> integerProduct = new Product<>(45); ...
package com.example.zealience.oneiromancy.ui.activity.user; import android.content.Intent; import android.os.Bundle; import androidx.core.content.ContextCompat; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.View; import android.widget.EditText; import...
package com.zhouyi.business.core.service; import com.google.common.eventbus.AllowConcurrentEvents; import com.zhouyi.business.core.dao.LedenCollectNodeMapper; import com.zhouyi.business.core.dao.LedenShareEmpowersMapper; import com.zhouyi.business.core.model.*; import com.zhouyi.business.core.utils.MathUtil; import co...
/* * Copyright (C) 2016 Sergej Shafarenka, www.halfbit.de * * 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 applic...
package com.liuwei.service; import org.springframework.security.access.annotation.Secured; public interface SecurityTestService { @Secured("ROLE_ADMIN") public void sayHello(String name); @Secured({"ROLE_USER","ROLE_ADMIN"}) public void sayGoodBye(String name); }
package com.tencent.mm.plugin.card; import com.tencent.mm.kernel.a.b.b; import com.tencent.mm.model.p; import com.tencent.mm.plugin.card.model.am; final class PluginCard$a extends p implements b { PluginCard$a() { super(am.class); } public final void parallelsDependency() { } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Process; import java.sql.*; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * * @author Administrator */ publ...
package com.services.utils.encrypt; public class HashCodeUtil { public static int hashCode(String value, int prime) { int h = 0; char[] cs = value.toCharArray(); if (h == 0 && cs.length > 0) { for (int i = 0; i < cs.length; i++) { h = prime * h + cs[i]; } } return h; } }
package sample; import java.util.Vector; public class OrangeOpponent implements Opponent { private Rect srcR; //место расположеняи привидения на спрайте private Rect destR; //место расположения привидения на карте private double scale; private final int startX = 1; private...
package ac.victor.java.bowling; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Unit tests for the BowlingGame class. * Created by Victor on 22/05/14. */ public class _bowlingGameTest { private BowlingGame bowlingGame; @Before public void setUp() { ...
package beans; import Model.Contato; public class ContatoBean { private Contato contato = new Contato(); public ContatoBean() { System.out.println("Criando bean ContatoBean"); } public String gravar(String paginarecebe) { int i = 5; while (i > 0) { System.out.println("Gravando contato " + contato.getN...
import java.util.*; /** * 692. Top K Frequent Words * Meidum */ public class Solution { public List<String> topKFrequent(String[] words, int k) { Map<String, Integer> map = new HashMap<>(); for (int i = 0; i < words.length; i++) { map.put(words[i], map.getOrDefault(words[i], 0) + 1)...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package figuras; import javax.swing.JOptionPane; /** * * @author ESTUDIANTE */ public class Triangulo extends Figura{ private ...
package com.erjiguan.apods.receiver; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import com.erjiguan.apods.BuildConfig; import java.util.List; imp...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.qfix.vms.dao; import com.qfix.vms.model.User; import java.util.List; /** * * @author M Asha Madushani */ public interf...
package com.dsc.dw.internal; import java.sql.Connection; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import javax.ws.rs.core.Response; import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; i...
package com.streamrecorder; //log4j classes //Red5 classes import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IClient; import org.red5.server.api.IConnection; import org.red5.server.api.IScope; /**This is the sample application class */ public class streamhandler extends ApplicationAdapte...
import java.util.ArrayList; /** * Created by alexanderhughes on 3/2/16. */ public class Exercise08 { public static void main(String[] args) { String[] names = {"Charlie", "David", "Alice", "Bob"}; ArrayList<String> sortedNames = new ArrayList<>(); for (String name : names) { ...
package com.fastjavaframework; import java.util.Properties; /** * spring配置文件注入次bean,通过此类,java类中直接获取properties中的参数 */ public class Setting { private static Properties properties; public static Properties getAll() { return properties; } public static String getProperty(String key) { ...
//Omar Mustafa Dalal 1180171 import java.util.ArrayList; //UCS class containing the Uniform Cost Search algorithm public class UCS { //Attributes private City[] cities; private ArrayList<City> visited; private MinPQ pq; //Constructor public UCS(City[] cities) { this.cities = cities; pq = new MinPQ(cities....
/*Immutable means once the object is created ,we can't change its content All the wrapper classes and String class is Immutable 1.Class must be final 2.All data members of the class must be declared as final 3.No setter method 4.getter methods for all the data members 5.Parameterized constructor Immutable objec...
package com.icleveret.recipes.controller; import com.icleveret.recipes.component.SessionHolder; import com.icleveret.recipes.model.Measure; import com.icleveret.recipes.service.MeasureService; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.hibernate.SessionFactory; impor...