text
stringlengths
10
2.72M
package com.woniu.vo; import io.swagger.models.auth.In; import lombok.Data; @Data public class PageVo { private Integer current; private Integer size; private String filmName; private String level; private Integer smallHour; private Integer greatHour; private String filmDescription; }
package lista_ponderado; public class NoAdjacencia { private int valor; private ListaSecundariaAdjacencia lista; private NoAdjacencia prox; public NoAdjacencia(int valor) { this.valor = valor; this.lista = null; this.prox = null; } public int getValor() { retu...
package day22_StringManipulation_Lab; public class Question1 { public static void main(String[] args) { System.out.println(helloName("Bob")); System.out.println(helloName("Omer")); } public static String helloName(String Name) { String Hello="hello "; return Hello.concat(Name).concat("!")...
package com.tencent.mm.plugin.wallet_index.ui; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; class WalletIapUI$1 implements OnCancelListener { final /* synthetic */ WalletIapUI pDI; WalletIapUI$1(WalletIapUI walletIapUI) { this.pDI = walletIapUI; ...
/* * 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 nlp_1; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; import java.io.FileWriter; import...
/* * 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 applicable law or agreed to in writing, software * distributed u...
/* * 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 TFD.DataAcess; import TFD.DomainModel.Categoria; import TFD.DomainModel.CategoriaRepositorio; import java.util.Hash...
package com.tencent.mm.plugin.wallet.pwd.a; import com.tencent.mm.plugin.wallet_core.model.p; import com.tencent.mm.wallet_core.c.d; import com.tencent.mm.wallet_core.tenpay.model.i; import java.util.HashMap; import java.util.Map; import org.json.JSONObject; public final class e extends i implements d { public e(...
package pathOptimal; import java.util.ArrayList; import java.util.List; public class Individual { private int[] chromosome; private double fitness = -1; private List<Integer> totalGene=new ArrayList<>(); /** * 用特定的染色体初始化该染色体 * @param chromosome */ public Individual(int[] chromosome) { ...
package br.com.nozinho.model.charts; import java.io.Serializable; public class Export implements Serializable { /** * */ private static final long serialVersionUID = 7978454209237379565L; private boolean enabled; public Export(boolean enabled){ this.enabled = enabled; } public boolean isEnabled() {...
import java.math.BigInteger; import java.util.Collections; import java.util.List; public class BigIntMultiplication implements Multipleable { @Override public String estimation(List<Integer> multiplicand, List<Integer> multiplier) { Collections.reverse(multiplicand); Collections.reverse(multip...
// // GCALDaemon is an OS-independent Java program that offers two-way // synchronization between Google Calendar and various iCalalendar (RFC 2445) // compatible calendar applications (Sunbird, Rainlendar, iCal, Lightning, etc). // // Apache License // Version 2.0, January 2004 // http://www.apache.org/licenses/ // /...
package com; import java.util.*; public class SearchFunctions { public static void search(int toBeSearched, RootNode head) { if (searchRoot(toBeSearched, head.getList())) { System.out.println("Success!"); } else { System.out.println("Failed..."); } } pub...
package ch01.ex01_10; public class ImprovedFibonacci { static final int MAX_INDEX = 9; static class Result { public int value; public boolean is_even; //値が偶数かどうか } public static void main(String[] args) { int lo = 1; int hi = 1; ...
public class Main { public static void main(String[] args) { Writer write = new Writer(); Read read = new Read(); Manager manager = new Manager(); Worker worker = new Worker(); Security security = new Security(); Officer officer = new Officer(); Chief chief = new Chief(); PartTime part =...
public class Sword { String name; int damage; public Sword() { this.name = "普通の剣"; this.damage = 10; } }
package com.packagename.myapp.Views; import com.packagename.myapp.Controllers.LoginController; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.Key; import com.vaadin.flow.component.UI; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.button.ButtonVariant; im...
package org.mym.featuredshowcase.target; import android.graphics.RectF; import android.view.View; public class ViewTarget implements Target { private View view; public ViewTarget(View view) { this.view = view; } @Override public RectF getRectF() { //This is relative position, we...
package com.days.moment.common.config; import com.days.moment.board.config.BoardRootConfig; import com.days.moment.miniboard.config.MiniRootConfig; import com.days.moment.notice.config.NoticeRootConfig; import com.days.moment.qna.config.QnaRootConfig; import com.days.moment.setting.config.SettingRootConfig; import com...
package sales; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class MapDAO { private static Connection conn; public static Connection getConnection() throws ClassNotFoundException, SQLException { if...
package edu.buet.cse.spring.ch03.v1.model; public interface Instrument { String getName(); void play(); }
package com.example.quizapp; import androidx.appcompat.app.AppCompatActivity; import androidx.constraintlayout.widget.ConstraintLayout; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; i...
package com.xcynice.XMvp.module.login; import android.text.TextUtils; import com.xcynice.XMvp.api.TestApi; import com.xcynice.XMvp.bean.User; import com.xmvp.xcynice.base.XBaseBean; import com.xmvp.xcynice.base.XBaseObserver; import com.xmvp.xcynice.base.XBasePresenter; import com.xmvp.xcynice.common.GlobalConstant; ...
package LeetCodeTopics.BinarySearch.MinimumNumberOfDaysToMakeMBouquets; public class Solution { }
package cop.swing.controls.combo; import cop.swing.nameprovider.NameProvider; import cop.swing.nameprovider.NameProviderSupport; import javax.swing.ComboBoxModel; import javax.swing.JComboBox; public class TComboBox<T> extends JComboBox<T> implements NameProviderSupport<T> { private NameProvider<T> nameProvider; ...
package com.demo.total; import android.app.Activity; import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.TextView; public class HelpScreen extends Activity implements OnTouchListener{ protected void onCreate(Bundle...
package example; import io.vertx.core.Vertx; import io.vertx.core.VertxOptions; import io.vertx.core.eventbus.MessageConsumer; import io.vertx.core.shareddata.AsyncMap; import io.vertx.core.spi.cluster.ClusterManager; import io.vertx.spi.cluster.zookeeper.ZookeeperClusterManager; import org.apache.curator.RetryPolic...
package com.duanxr.yith.easy; import com.duanxr.yith.define.treeNode.TreeNode; /** * @author Duanran 2019/2/15 0015 */ public class LongestUnivaluePath { /** * Given a binary tree, find the length of the longest path where each node in the path has the * same value. This path may or may not pass through th...
/* * 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 DOMIC; import java.util.ArrayList; public class Question { ArrayList<Answer> answers = new ArrayList<>(); String tex...
package com.vilio.plms.quartz; import com.vilio.plms.exception.ErrorException; import com.vilio.plms.glob.ReturnCode; import com.vilio.plms.service.base.BaseService; import com.vilio.plms.service.base.CommonService; import com.vilio.plms.util.SpringContextUtil; import org.apache.log4j.Logger; import org.quartz.JobExec...
package handwriting.learners; import handwriting.core.RecognizerAI; import java.util.function.Supplier; /** * Created by john on 10/27/15. */ public class BaggedTest extends Bagger { public BaggedTest(Supplier<RecognizerAI> supplier, int numBags) { super(SOM::new, 100); } }
package br.com.sistemamedico.config; import org.springframework.context.annotation.Bean; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.orm.jpa.JpaTransactionManager; import org.springframework.orm.jpa.JpaVendorAdapter; import org.springframework.orm.jpa.LocalContainerEn...
package com.tour.service; import com.tour.model.ChessBoard; import com.tour.model.KnightTour; import com.tour.model.KnightTourParameters; import com.tour.model.Point; import org.junit.Assert; import org.junit.Test; import java.util.Arrays; import java.util.Optional; public class WarnsdorffKnightTourFinderImplTest { ...
package xdpm.nhom11.angrybirdsproject.xmlbird; import java.util.ArrayList; import xdpm.nhom11.angrybirdsproject.entities.Bird; import xdpm.nhom11.angrybirdsproject.entities.Block; import xdpm.nhom11.angrybirdsproject.entities.Pig; import xdpm.nhom11.angrybirdsproject.entities.Slingshot; public class DTOLevel { // i...
package com.alonemusk.medicalapp.ui.Search; import android.app.Application; import android.os.AsyncTask; import androidx.annotation.WorkerThread; import androidx.lifecycle.LiveData; import com.alonemusk.medicalapp.ui.utils.Utils; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Executi...
package DPI.wecontroller; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.an...
/* * 2012-3 Red Hat Inc. and/or its affiliates and other contributors. * * 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 requi...
/** (Check password) Some websites impose certain rules for passwords. Write a method that checks * whether a string is a valid password. Suppose the password rules are as follows: * ■ A password must have at least eight characters. * ■ A password consists of only letters and digits. * ■ A password must cont...
package java1.basic_algo; /** * 피보나치 수열을 출력해라 * An = An-1 + An-2 * 1 1 2 3 5 8 13 21 34 55 */ public class Pibonacci { public static void main(String[] args){ System.out.println(solution1(15)); System.out.println("================"); System.out.println(solution2(15)); } ...
public class UsingVariable { public static void main(String[] args) { //variáveis dentro do método = var. locais int x; x = 10; x = 5; x = x + 1; //x <- x + 1 int myFinalScore = 10; System.out.println(myFinalScore); } }
package com.example.jmchugh.rxmvp.weather.dagger; import javax.inject.Scope; /** * Created by jmchugh on 1/12/2018. */ @Scope public @interface WeatherScope { }
package com.example.galadar.stockxchange; import java.util.ArrayList; /** * Created by Galadar on 28/10/2015. * Meeting Object */ public class Meeting { private int day; private String title; private ArrayList<String> speech; public Meeting(int day, String title, ArrayList<String> speech) { ...
import java.awt.TextArea; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import javax.swing.JPanel; import net.miginfocom.swing.MigLayout; import javax.swing.JLabel; import javax....
/* * Copyright (c) 2014 Hewlett-Packard Development Company, L.P. * * 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 b...
package com.example.easymodbus_project.service; import com.example.easymodbus_project.model.CoilsRegister; import java.util.List; public interface CoilsRegisterService { CoilsRegister findById(int id); List<CoilsRegister> findAll(); void save(CoilsRegister coilsRegister); void delete(int id); }
package se.kth.iv1350.processsale.integration; import se.kth.iv1350.processsale.model.Payment; import java.util.ArrayList; import java.util.List; /** * Contains information about the payment (the money transfer) of all performed sales. * This is a dummy and it is initially empty. */ public class AccountingSystem {...
package com.habiture; import com.habiture.exceptions.HabitureException; import java.io.InputStream; /** * Created by Yeh on 2015/5/30. */ public class FileStream { private NetworkConnection connection = null; public FileStream(NetworkConnection connection) throws HabitureException { if(connectio...
package com.tencent.mm.plugin.fav.ui.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.tencent.mm.model.q; import com.tencent.mm.plugin.fav.a.b; import com.tencent.mm.plugin.fav.a.g; ...
package com.example.obat9; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; public class Pdalam extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
package com.appsculture.database.dao; import com.appsculture.models.Word; import java.util.List; /** * Interface to define Vocabulary Database Access object * * Created by shobharam.piplode on 11/10/2015. */ public interface IVocabularyDAO { public Word fetchWordById(int id); public List<Word> fetchWords...
/* * 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 ejb.session.stateless; import entity.AircraftType; import java.util.ArrayList; import javax.ejb.Stateless; import javax.persis...
package entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "users") public class User { @Id @GeneratedValue(strate...
package org.kernelab.basis.sql; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.concurrent.Callable; import org.kernelab.basis.AbstractPool; import org.kernelab.basis.Tools; public class ConnectionPool extends AbstractPool<Connection> implements ConnectionManager...
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
package com.tencent.mm.plugin.luckymoney.b; import com.tencent.mm.plugin.wallet_core.model.a; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; import org.json.JSONObject; public final class ae extends ab ...
package com.huawei.esdk.tp.professional.local.impl.utils; import javax.net.ssl.SSLHandshakeException; import javax.xml.ws.soap.SOAPFaultException; import com.huawei.esdk.tp.professional.local.bean.TPSDKResponseEx; import com.huawei.esdk.tp.professional.local.constant.NativeConstant; public abstract class ExceptionUt...
package br.gov.ma.emap.acessos; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class AcessosApplication { public static void main(String[] args) { SpringApplication.run(AcessosApplication.class, args); } }
package com.excilys.formation.cdb.service.implementation; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Service; import com.excilys.formation.cdb.core.enumeration.Resultat; imp...
package com.awsp8.wizardry.Events; import java.util.Random; import net.minecraft.init.Blocks; import net.minecraftforge.event.entity.player.BonemealEvent; import com.awsp8.wizardry.Wizardry; import com.awsp8.wizardry.Gen.MaztrixTreeGen; import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class SaplingGr...
package com.espendwise.manta.auth; import com.espendwise.manta.model.view.DisplaySettingsView; import java.util.HashMap; public class AuthUserContext extends HashMap<String, Object> { public static final Class<DisplaySettingsView> DISPlAY_SETTINGS = DisplaySettingsView.class; public static final Class<Auth...
package controller; import entity.database.Firebase; import javafx.embed.swing.SwingFXUtils; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.input.MouseEvent; import org....
/* * 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 padraosingletonnumerotelefone; import java.io.Serializable; /** * * @author 20131BSI0173 */ public class GeradorDeNumerosU...
package com.tencent.mm.plugin.aa.ui; import android.os.Bundle; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; import android.view.View; import android.widget.CheckBox; import com.tencent.mm.model.q; import com.tencent.mm.model.s; import com.tencent.mm.plugin.aa.a.h; import com.tenc...
package hw1Q2JavaBasics; public class JavaComments { public static void main(String[] args) { // This is for single line comments /* * This is how we Do Multiple Line Comments * * */ System.out.println("This Is For Java Comments"); System.out.println("\"bonny\""); System.out.println("\"bon...
package gr.athena.innovation.fagi.core.similarity; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.NoSuchElem...
package com.sporsimdi.action.home; import java.util.Map; import javax.ejb.EJB; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import javax.faces.context.FacesContext; import com.sporsimdi.action.facade.GrupFacade; import com.sporsimdi.model.entity.Grup; @ManagedBean(name = "g...
/** * Fait par Andre-Viet Tran (20051185) et Alexandre Keo * * Date : 16 Septembre 2019 * * But : - Programme qui permet de verifier si une annee est bissextile * - J'ai utiliser la classe Scanner afin que l'utilisateur * puisse entrer l'annee * */ import java.util.Scanner; public class Annee { ...
package com.jk.jkproject.ui.activity; import android.content.Intent; import android.os.Bundle; import androidx.annotation.Nullable; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.widget.EditText; import android.widget.ImageView; import android.widget.Relati...
package com.tencent.mm.plugin.sns.model; import com.tencent.mm.protocal.c.bon; import java.util.Comparator; class a$1 implements Comparator<bon> { a$1() { } public final /* bridge */ /* synthetic */ int compare(Object obj, Object obj2) { return ((bon) obj).lOH - ((bon) obj2).lOH; } }
package com.example.trailer; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class Setting...
package com.olal.caclulator.model; import javax.persistence.*; import java.io.Serializable; import java.util.Date; import java.util.Set; @Entity @Table(name = "users") public class User implements Serializable { private Integer id; private String email; private String lastName; private String firstNam...
package com.ev.srv.demopai.api; import com.evo.api.springboot.exception.ApiException; import com.ev.srv.demopai.model.Contact; import com.ev.srv.demopai.model.RequestWrapperContact; import com.ev.srv.demopai.service.AgendaService; import org.springframework.beans.factory.annotation.Autowired; import org.springframewo...
package com.tencent.mm.plugin.readerapp; public final class a$h { public static final int appbrandcomm_sqlite_lint_whitelist = 2131099655; public static final int contact_info_pref_readerappnews = 2131099680; public static final int enmicromsg_sqlite_lint_whitelist = 2131099688; public static final int...
package com.headfirst.designpatterns.factory.factory; public class NYStylePepperoniPizza extends Pizza{ public NYStylePepperoniPizza(){ name = "NY Style Pepperoni Pizza"; dough = "NY Pepperoni Dough"; sauce = "NY Pepperoni Sauce"; toppings.add("NY Pepperoni"); } }
package com.lubarov.daniel.data.util; public final class Check { private Check() {} public static void that(boolean condition, String format, Object... args) { if (!condition) throw new RuntimeException(String.format(format, args)); } public static void that(boolean condition) { Check.that(cond...
package br.com.nozinho.ejb.service; import javax.ejb.Local; import br.com.nozinho.model.DemandaStatus; @Local public interface DemandaStatusService extends GenericService<DemandaStatus, Long>{ }
package com.projects.houronearth.activities.adapters; import android.content.Context; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.LinearLayout; import android.widget.TextView; ...
public class Palindrome { static boolean palindromeChecker(String word) { int i = 0; int j = word.length() - 1; while (i < j) { if (word.charAt(i) != word.charAt(j)) { return false; } i++; j--; } // returns true if the conditional is not met return true; } public static voi...
package com.supconit.kqfx.web.fxzf.msg.daos.Impl; import java.util.List; import org.springframework.stereotype.Repository; import hc.orm.AbstractBasicDaoImpl; import com.supconit.kqfx.web.fxzf.msg.daos.MsgDao; import com.supconit.kqfx.web.fxzf.msg.entities.Msg; @Repository("taizhou_offsite_enforcement_msg_dao") p...
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the te...
package com.wb.cloud.service; import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; import org.springframework.stereotype.Ser...
package zm.gov.moh.core.repository.database.entity.domain; import androidx.room.*; import com.squareup.moshi.Json; @Entity(tableName = "location_tag_map") public class LocationTagMap { @PrimaryKey @ColumnInfo(name = "location_id") @Json(name = "location_id") private long locationId; @ColumnInfo...
package com.example.Careplus.Login_Signup; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import com.example.Careplus.Main.MainActivity...
package com.chenzexuan.xmlcustomviewlib; import android.content.Context; import android.content.res.ColorStateList; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.widget.EditText; /** * Created by chenzexuan on 2017/1/12. * * introduce in FlatXmlViewHelper */ public c...
package com.tencent.mm.g.c; import android.content.ContentValues; import android.database.Cursor; import com.tencent.mm.sdk.e.c; import com.tencent.smtt.sdk.TbsVideoCacheTask; import com.tencent.tmassistantsdk.downloadservice.DownloadInfo; public abstract class ev extends c { private static final int cAY = "expir...
package com.lei.service; import com.lei.domain.request.test.TestRequest; import com.lei.domain.response.test.TestResponse; public class TestService { public TestResponse testInterface(TestRequest request) { TestResponse response = new TestResponse(); response.setAge(15); response.setSex("male"); ...
package great.dog.api.config; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import ...
package javaBasics; public class SwitchConcept { public static void main(String[] args) { SwitchConcept sw = new SwitchConcept(); sw.enterday("Saturday"); } public void enterday(String day){ switch (day){ case "Monday": System.out.println("Entered weekday is Monday"); break; case "Tue...
package com.rc.frames; import com.rc.app.ShadowBorder; import com.rc.components.*; import com.rc.entity.SelectUserData; import com.rc.panels.SelectUserPanel; import com.rc.res.Colors; import com.rc.utils.FontUtil; import com.rc.utils.OSUtil; import com.sun.awt.AWTUtilities; import javax.swing.*; import javax.swing.bo...
package app; import java.util.ArrayList; import java.util.Scanner; public class QuestionManager { private final String fileName = "questions.txt"; ArrayList<Question> questions; public void load () { try { questions = (ArrayList<Question>) FileHandler.read(fileName); } ...
import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; public class FileOutput { /** * @param args * @throws FileNotFoundException */ public static void main(String[] args) throws FileNotFoundException { String name; String address; String phone; S...
/** */ package ca.uwaterloo.gp.fmp.impl; import ca.uwaterloo.gp.fmp.Featur; import ca.uwaterloo.gp.fmp.Feature; import ca.uwaterloo.gp.fmp.FmpPackage; import ca.uwaterloo.gp.fmp.TypedValue; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalE...
package rent.common.interfaces; import java.time.LocalDate; /** * Интерфейс для сущьностей у которых должен указываться период действия С - период действия ПО */ public interface IPeriod { LocalDate getDateStart(); LocalDate getDateEnd(); }
/* * Copyright (C) 2023 Hedera Hashgraph, LLC * * 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 applicable la...
// assignment 9 // pair p134 // Singh, Bhavneet // singhb // Wang, Shiyu // shiyu import tester.*; import java.util.*; public class ExamplesEliza { // Examples ArrayLists of Strings representing answers ArrayList<String> wholist; ArrayList<String> whatlist; ArrayList<String> wherelist; ArrayList<...
package com.servlet.member.dao; import java.sql.SQLException; import java.util.List; import com.ibatis.sqlmap.client.SqlMapClient; import com.servlet.member.vo.MemberVO; public interface IMemberDao { public int insertMember(SqlMapClient smc, MemberVO mv) throws SQLException; public int updateMember(SqlMapClien...
import java.io.*; import java.net.URL; import java.net.URLConnection; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org....
package com.ld.baselibrary.util.app; import com.ld.baselibrary.BuildConfig; public class BuildConfigManage { // 判断当前环境是否是prod public static boolean isProd(){ if(BuildConfig.FLAVOR.equals("prod") // || BuildConfig.FLAVOR.equals("zqh360") // || BuildConfig.FLAVOR.equals("z...
package 斐波那契数列; public class Fibonacci { public static void main(String[] args) { System.out.println(f(5)); } private static int f(int n){ if (n == 0 ) return 0; if (n == 1 || n ==2) return 1; int a = 1; int b = 1; int sum = 0; for (int i = 3; i <= n;...
package com.xiruan.demand.entity.monitor; import com.xiruan.demand.entity.IdEntity; import javax.persistence.*; /** * Created by chen on 2015/6/6. */ @Entity @Table (name = "template_service_relationship") public class TemplateInService extends IdEntity { private Template template; private Service service;...