text
stringlengths
10
2.72M
package com.primersql; import java.sql.*; /** * * @author Israel Sanchez Aguilar */ public class testMySqlJDBC { public static void main(String[] args) { String url = "jdbc:mysql://localhost:3306/test?useSSL=false" + "&useTimezone=true=&serverTimezone=UTC&allowPublicKeyRetrieval=true";...
package com.tencent.mm.ui.chatting.viewitems; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.util.SparseArray; import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnLongClickListener; import android.view.ViewGroup; import android...
package csci152.impl; public class BinaryTree<T> { private TreeNode<T> root; public BinaryTree(TreeNode<T> root) { this.root = root; } public TreeNode<T> getRoot() { return this.root; } public void setRoot(TreeNode<T> root) { this.root = root; } private Stri...
class Solution { public String pushDominoes(String dominoes) { char[] arr = dominoes.toCharArray(); int n = arr.length , st = 0 , end = 0; while (end < n) { while (end < n && arr[end] == '.') end += 1; if (end == n) break; ...
/** * */ package org.usfirst.frc.team467.robot.simulator; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.usfirst.frc.team467.robot.Logging; import org.usfirst.frc.team467.robot.RobotMap; import org.usfirst.frc.team467.robot.RobotMap.RobotID; import org.usfirst.frc.tea...
package com.example.sch; import android.content.Context; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.RequiresApi; import android.support.v4.app.Fragment; import...
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the l...
package it.polimi.ingsw.GC_21.GAMEMANAGEMENT; import java.io.Serializable; import java.util.ArrayList; import org.omg.CORBA.PUBLIC_MEMBER; import it.polimi.ingsw.GC_21.BOARD.Dice; import it.polimi.ingsw.GC_21.GAMECOMPONENTS.DevCardType; import it.polimi.ingsw.GC_21.GAMECOMPONENTS.DevDeck; import it.polimi.ingsw.GC_2...
package com.tencent.mm.plugin.location.ui; import android.content.Context; import android.view.View; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.ImageView.ScaleType; import android.widget.ProgressBar; import android.widget.TextView; import com.tencent.mm.plugin.location.mo...
package com.leetcode.easy; import java.util.ArrayList; import java.util.List; import java.util.Stack; class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } /** * Created by saml on 1/11/2018. */ public class BinaryTreeLevelOrderTraversalII { Stack<Tr...
package day16_Recap; import java.util.Scanner; public class nextLine2 { public static void main(String[] args) { /* write a program that accepts zipcode,city,state,phonenumber and then display all those gathered information do not use next method */ Scanner input=new Scanner(System.in); System.o...
package com.rex.demo.study.test; import org.apache.flink.api.java.ExecutionEnvironment; import org.apache.flink.api.java.operators.DataSource; /** * @Author li zhiqang * @create 2020/11/24 */ public class Common { public static void main(String[] args) throws Exception { final ExecutionEnvironment en...
package com.kdgm.webservice; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ArrayOfAnaKurumlarButceTur...
package com.nic.usermanagement.dao; import java.util.Map; import com.nic.usermanagement.model.BhudharRegistration; public interface BhudharDAO { public BhudharRegistration bhudharRegistration(BhudharRegistration bhurdetails); public BhudharRegistration BhudharDetailsById(Integer bhudharid); Bh...
package in.vaksys.vivekpk.fragments; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.Fragment; import android.text.Editable; import android.text.TextWatcher; import android.view....
package com.chenpeini.webflux.handler; import com.chenpeini.webflux.params.DemoParam; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; import org.springframework.util.MultiValueMap; import org.springframework.web.reactive.function.BodyInserters; import org.springframework.web...
package com.tencent.mm.ak; import android.content.ContentValues; import android.database.Cursor; import com.tencent.mm.sdk.platformtools.x; public final class e { public int bWA = -2; public long bYu; int cGG = 0; public int dHI; public long dTK; public String dTL = ""; public String dTM =...
package com.umind.games; import java.util.ArrayList; import java.util.List; import android.annotation.SuppressLint; import android.app.Activity; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.v4.app.NavUtils; import android.util.Log; import android.v...
package complexNumberProject; import complexNumberArray.client.ComplexNumberArrayclient; public class CoplexNumberArray { private int[] real; private int[] img; public static int variableName = 45; public CoplexNumberArray() { } public CoplexNumberArray(int[] real, int[] img) { this.r...
package com.plexobject.dp.sample.provider; import java.util.Collection; import com.plexobject.dp.domain.DataRowSet; import com.plexobject.dp.domain.MetaField; import com.plexobject.dp.domain.MetaFieldFactory; import com.plexobject.dp.domain.Metadata; import com.plexobject.dp.domain.QueryConfiguration; import com.plex...
/* * GeoServer-Manager - Simple Manager Library for GeoServer * * Copyright (C) 2007,2011 GeoSolutions S.A.S. * http://www.geo-solutions.it * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in t...
package soft.chess.server.gameHall; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.util.List; import soft.chess.dao.Dao; import soft.chess.domain.Player; import soft.chess.util.HallServerMsgUtil; import soft.chess.util.JsonUtil; public class QueryAllPlayersSer...
package 문제풀이; public class 문제2 { public static void main(String[] args) { // 1부터 1000까지 중 3씩 점프 만약 더한 값이 100이 넘으면 더하기 종료 // 5의 배수는 더하지 않습니다 int sum = 0; int count = 0; for (int i = 1; i <= 1000; i = i + 3) { if (sum > 100) { break; // for문 종룔 } if (i % 5 == 0) { continue; // 이번 횟수가 제외하고...
package common.java.utils; public class CommandLineArgExample { public static void main(String[] args) { if (args != null && args.length > 0) { for (int i = 0; i < args.length; i++) { String commandLineArg = args[i]; System.out.println("commandLineArg " + i + " : " + commandLineArg); } } else { ...
package com.pingcap.tools.cdb.binlog.instance.core; /** * Created by iamxy on 2017/2/16. */ public interface CDBInstanceGenerator { CDBInstance generate(String destination); }
package pers.pbyang.myutil; public class TradeUtil { public static String trade_sql; public static String TradeSql(String country, String chuanXing, String daoYear1, String daoYear2, String liYear1, String liYear2) { trade_sql = "select id, country,daoYear,daoMonth,daoDay,number,chuanXing,danWei,huoNum,junNum,l...
package in.swapnilsingh; import java.util.ArrayList; public class Main { public static void main(String[] args) { League<Team<FootballPlayer>> footballLeague = new League<>("AFL"); Team<FootballPlayer> adelaideCrows = new Team<>("Adelaide Crows"); Team<FootballPlayer> melbourne = new Team...
package com.cnk.travelogix.sapintegrations.chargeable.itemcharging.data; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for StateScheduleItemCode. * * <p>The following schema fragment specifies the expected c...
package am.main.api; import am.main.common.ConfigUtils; import am.main.data.enums.Interface; import am.main.data.enums.impl.AMS; import am.main.exception.GeneralException; import am.main.session.AppSession; import am.main.spi.AMCode; import javax.annotation.PostConstruct; import javax.inject.Inject; import...
package database; public class Bounty { public int id; public String title; public String criteria; public String description; public double value; public String expiration; public Bounty(){ this.id = 0; this.title = ""; this.criteria = ""; this.description = ""; this.value = 0; this.expiration =...
package yincheng.gggithub.mvp.presenter; import yincheng.gggithub.mvp.contract.PersonalContract; /** * Created by yincheng on 2018/6/14/18:11. * github:luoyincheng */ public class PersonalPresenter extends RxPresenter<PersonalContract.View> implements PersonalContract.Presenter { }
package com.mctoybox.toybox.blocks; import java.io.File; import org.bukkit.World; import org.bukkit.plugin.Plugin; import org.getspout.spoutapi.block.design.GenericCubeBlockDesign; import org.getspout.spoutapi.material.block.GenericCuboidCustomBlock; import org.getspout.spoutapi.player.SpoutPlayer; import com.mctoyb...
package com.coffeebeantech.social_login_example; import org.brickred.socialauth.Profile; import org.brickred.socialauth.android.DialogListener; import org.brickred.socialauth.android.SocialAuthAdapter; import org.brickred.socialauth.android.SocialAuthAdapter.Provider; import org.brickred.socialauth.android.SocialAuthE...
package com.packers.movers.test; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; import org.testng.annotations.Test; @Test @ContextConfiguration(locations = {"classpath:test-context.xml"}) public class UnitTest extends Abst...
package com.example.login; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.os.Bundle; import android.view.View; import android.widget.Button; i...
/* * Sparsh Bohra * 16/11/2019 * TicTacToe */ import java.util.ArrayList; import java.util.List; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class TicTacToe { static ArrayList<Integer> plaPositions = new ArrayList<Integer>(); static ArrayList<Integer> cpuPosition...
package com.codegym.controller; import com.codegym.model.Author; import com.codegym.model.Blog; import com.codegym.service.AuthorService; import com.codegym.service.BlogService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.w...
package com.zebra.pay.controller.auth; import com.zebra.pay.controller.SimpleBaseController; import com.zebra.pay.manager.admin.auth.SysUserManager; import com.zebra.pay.po.auth.Role; import com.zebra.pay.po.auth.SysUser; import com.zebra.pay.utils.MD5Util; import com.zebra.pay.utils.Page; import com.zebra.p...
package com.serhii.cryptobook.chapter1; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import java.io.*; import java.security.Key; import java.security.SecureRandom; public class SecretWriting { public static void main(String[] args) th...
package Management.HumanResources.test; import Marketing.OrderCenterEntity.OrderCenter; import Marketing.OrderEnity.Order; import Marketing.OrderEnity.OrderCanInformation; import Marketing.Promotion.Coupon; import Marketing.Promotion.Sale.TwentyPercentOff; import Presentation.Protocol.IOManager; import Mediator.Depart...
import model.SimpleDice; public class Test1 { public static void main(String[] args) { SimpleDice diceA = new SimpleDice(1); SimpleDice diceB; diceB = diceA; diceB.setFaceValue(4); System.out.println(diceA); } }
package mx.com.azaelmorales.yurtaapp; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.BottomNavigationView; import android.support.design.widget.NavigationView; import android.support.v4.app.FragmentManager; import android.support.v4.view.GravityCompat; import androi...
package com.storytime.client.lobby; import de.novanic.eventservice.client.event.Event; import de.novanic.eventservice.client.event.domain.Domain; import de.novanic.eventservice.client.event.domain.DomainFactory; public class UpdateLobbyUsersEvent implements Event { private static final long serialVersion...
package com.aidn5.antigriefer.util; import net.minecraft.client.Minecraft; import net.minecraft.util.ChatComponentText; import net.minecraft.util.ChatStyle; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IChatComponent; public class McUtil { public static void showMessage(String message) { ...
package com.jayqqaa12.mobilesafe.service; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.content.Intent; import android.database.ContentObserver; import android.net.Uri; import android.os.Binder; import android.os.Handler; import android.os.IBinder; import androi...
package com.wincentzzz.project.template.springhack.services; import com.wincentzzz.project.template.springhack.models.Doctor; import org.springframework.data.domain.Page; public interface DoctorService { Page<Doctor> getAllDoctors(String doctorName, String specialization, Integer pageNumber); Doctor getDoctor...
package com.youthchina.controller; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.text.PDFTextStripper; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.Spr...
package gr.athena.innovation.fagi.core.function; import org.apache.jena.rdf.model.Literal; /** * Interface for a condition function that takes a single Literal parameter as input. * * @author nkarag */ public interface IFunctionOneParameter extends IFunction{ /** * Evaluates the single Literal para...
package sim.util; import java.util.ArrayList; import java.util.Collection; import java.util.List; import sim.ordemcompra.*; public class OrdemCompraRelatorio extends RelatorioUtil { @Override public Collection preencheObjeto(Integer codigo) { OrdemCompraRN ocRegra = new OrdemCompraRN(); List<Orde...
package com.naukri.imagecropper; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.Motion...
package com.trainingmarket.bean; public class UserBean { private String email = null; private String user = null; private String telNum = null; private String password = null; private String name = null; private String sex = null; private String photo = null; private String birthday = null; private...
public class Main { public static void main(String[] args) { // Detta är en lektionsuppgift, hamnade i hemläxor då jag inte tänkte särskilt mycket när jag skapade filen. lol(); min(2, 4); count(4); kelvin(20); ageControl(99); stair(4); } /** * Tas...
package com.tencent.mm.plugin.remittance.model; 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.k; import com.tencent.mm.network.q; import com.tencent.mm.protocal.c.ja; import com.tencent.mm.protocal.c.jb; import com.tencen...
package com.test; public class Student { public String getName() { return name; } public String getSubject() { return subject; } public double getMark() { return mark; } public String name=null; public String subject=null; public double mark=0.0; public Student(String name,String subject...
/** Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Note: A leaf is a node with no children. Example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 re...
package de.shm.fangbuch; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.support.design.widget.FloatingActionB...
package com.hjs.study.model; import com.google.gson.annotations.SerializedName; public class Stock { public Stock(String stockCode, String stockName){ this.stockCode = stockCode; this.stockName = stockName; } /*public Stock(String selectDiv, String stockCode, String stockName, String tra...
package cn.canlnac.onlinecourse.data.repository; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import cn.canlnac.onlinecourse.data.ApplicationTestCase; import cn.canlnac.onlinecourse.data...
package MyTest; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /** * Author: fangxueshun * Description: * Date: 2017/6/16 * Time: 18:20 */ public class SearchFIle { static String path = "...
package sos.pojo.dto; public class UserEmployee extends Person { private String username,password; private Branch branch; public UserEmployee(){} public UserEmployee(String name, String surname, String phone, String username, String password, Branch branch) { super(name, surname, phone); this.us...
package ru.rchol.springgo.modelwork; import org.springframework.stereotype.Component; import ru.rchol.springgo.model.Visitors; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.transaction.Transactional; import java.util.List; @Component @Transactional public class Vi...
package cse360assign3; import static org.junit.Assert.*; import org.junit.Test; public class CalculatorTest { @Test public void testCalculator() { Calculator test = new Calculator(); assertNotNull(test); } @Test public void testGetTotal() { Calculator test = new Calculator(); asse...
package hotelBooking; class PageObjects { static String LANDING_PAGE_HEADER = "jumbotron"; static String BOOKING_FORM = "bookings"; static String FIRST_NAME_LABEL = "#bookings > div:nth-child(1) > div:nth-child(1) > h3"; static String SURNAME_LABEL = "#bookings > div:nth-child(1) > div:nth-child(2) > h...
package com.shopify.api.lotte.delivery; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.databind.PropertyNamingStrategy; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Data; @Data @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) public class Lot...
package com.cxjd.nvwabao.fragment.findFunctions.OneHundred; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.GridL...
import java.util.Scanner; public class FtoC { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int min=scan.nextInt(); int max=scan.nextInt(); int step=scan.nextInt(); while(min<=max){ System.out.print(min+" "); ...
package com.hason.dtp.core.utils.result; import com.hason.dtp.core.exception.ErrorResult; import java.io.Serializable; /** * 接口返回的结果 * * @author Huanghs * @since 2.0 * @date 2017/11/8 */ public class Result<T> implements Serializable { /** 数据 */ private T data; /** 错误消息 */ private ErrorResult...
package com.wt.jiaduo.dto.jpa; // Generated 2018-4-3 10:51:07 by Hibernate Tools 5.2.8.Final import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import jav...
package fun.witt.lambda; import org.junit.Test; import java.util.stream.IntStream; public class MinDemoTest { @Test public void fun() { int[] ints = {12, 12, 312, 412, 15, 235}; int min = IntStream.of(ints) .parallel() //并行计算 .min() .getAsIn...
package com.nitish.controller; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; i...
package com.yuan.unit; import org.json.JSONArray; import org.json.JSONObject; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.graphics.PixelFormat; import android.view.Gravity; import android.view.View; import android.view.ViewGroup.Layo...
import lejos.nxt.ColorSensor; import lejos.nxt.LCD; import lejos.nxt.Motor; import lejos.nxt.SensorPort; public class Control { Time time; Steering steering; Colorsensor colorsensor; Printer printer; Pilot pilot; Ultrasensori ultrasensori; int pilotType; public void setobjects(Time t, Steering s, Colorsensor...
package br.ufc.quixada.dadm.variastelas; import android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Entity; import android.arch.persistence.room.Ignore; import android.arch.persistence.room.PrimaryKey; @Entity(tableName = "contato") public class Contato { @PrimaryKey(autoGenerate = tru...
package com.vilio.nlbs.commonMapper.dao; import com.vilio.nlbs.commonMapper.pojo.NlbsLoginInfo; public interface NlbsLoginInfoMapper { int deleteByPrimaryKey(Integer id); int insert(NlbsLoginInfo record); int insertSelective(NlbsLoginInfo record); NlbsLoginInfo selectByPrimaryKey(Integer id); ...
package pl.jrkn.legacyofthevoidapi.repository; import org.springframework.data.jpa.repository.JpaRepository; import pl.jrkn.legacyofthevoidapi.model.character.Character; public interface CharacterRepository extends JpaRepository<Character, Long> { }
package br.com.fiap.jpa.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.SequenceGene...
/* * [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 ter...
package com.tencent.mm.plugin.shake.ui; import android.content.Intent; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import com.tencent.mm.bg.d; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.shake.b.f; import com.tencen...
/* * 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 boletin10; import javax.swing.JOptionPane; /** * * @author Arasa */ public class Juego { public vo...
package com.linda.framework.rpc.aio; import java.nio.channels.CompletionHandler; public class SocketAcceptHandler<V, A> implements CompletionHandler<V, A> { @Override public void completed(V result, A attachment) { } @Override public void failed(Throwable exc, A attachment) { } }
package uk.gov.hmcts.befta.util; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.stream.Collectors; public class ReflectionUtils { public static Object deepGetFieldInObject(Object object, String fieldPath) throws E...
package com.msh; import io.micronaut.http.annotation.Controller; import io.micronaut.http.annotation.Get; import javax.servlet.http.HttpServletRequest; /** * Created by IntelliJ IDEA. * User: mshaikh4 * Date: 30-08-2021 * Time: 18:00 * Year: 2021 * Project: micronauth-demo * Package: com.msh */ @Controller("...
package com.tencent.mm.bt; import android.content.ContentResolver; import android.database.CharArrayBuffer; import android.database.ContentObserver; import android.database.Cursor; import android.database.DataSetObserver; import android.net.Uri; import android.os.Bundle; import android.util.SparseArray; import com.ten...
package day43JavaRecap; public class practice2 { public static void main(String[] args) { staticKeyword1.printName();//static method cen ba called through the class name staticKeyword1 obj1=new staticKeyword1();//inorder to call the insta method I need to create an object System.out.println(obj1.InsName);...
package com.example.todolist.Di.Modules; import androidx.lifecycle.ViewModel; import com.example.todolist.AddGroups.AddGroupViewModel; import com.example.todolist.AddTasks.AddTaskViewModel; import com.example.todolist.Di.Keys.ViewModelKey; import com.example.todolist.Main.GroupsViewModel; import com.example.todolist....
package onemount.com; import java.util.Scanner; public class App { public static int[][] inputMatrix() { Scanner sc = new Scanner(System.in); System.out.println("Số dòng : "); int r = sc.nextInt(); System.out.println("Số cột: "); int c = sc.nextInt(); int[][] arr = ...
package jour28; public class Dog extends Mammal{ public boolean sadik =true; public static void main(String[] args) { Dog dog = new Dog(); dog.eat(); } public void bark() { System.out.println("Kopekler havlar"); } Dog(){ super(); // istege bagli koysak da olur koymasak da //this() ayn...
/* * Copyright (C) 2015 Miquel Sas * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is d...
/* * 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.example.codetribe1.constructionappsuite.dto; import java.io.Serializable; import java.util.Date; import java.util.List; ...
package com.hxzy.mapper; import com.hxzy.common.vo.PageSearch; import com.hxzy.entity.Data; import java.util.List; public interface DataMapper { int insert(Data record); Data selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Data record); int updateByPrimaryKey(Data record); /*...
package com.tencent.mm.ui.statusbar; import android.os.Build.VERSION; import android.view.View; import android.widget.FrameLayout.LayoutParams; import com.tencent.mm.ui.MMActivity; public abstract class DrawStatusBarActivity extends MMActivity { private b gue = null; protected void initSwipeBack() { ...
package com.ibeiliao.pay.idgen.impl.dao; import com.ibeiliao.pay.datasource.MyBatisDao; import com.ibeiliao.pay.idgen.impl.entity.IdSerialPO; import org.apache.ibatis.annotations.Param; /** * t_id_serial 的接口 * @author linyi 2016/7/7. */ @MyBatisDao public interface IdSerialDao { /** * 读取ID记录 * @para...
package de.lise.terradoc.core.state; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.nio.charset.Charset; import java.nio.charset.Stan...
package com.zhouyi.business.common; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; import...
package controleur; import java.awt.Desktop; import java.awt.event.*; import java.io.File; import java.io.IOException; import java.sql.Connection; import javax.swing.*; import modele.ControleConnexion; import vue.*; public class ControleurVueIdentif extends WindowAdapter implements ActionListener { ...
package com.stem.controller; import java.io.IOException; import java.io.OutputStream; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.IOUtils; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.stem.core.ImageDealIm...
package app.controller; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import app.model.Customer; import app.mytools.DBUtil; public class CustomerDAO { private static EntityManager em = DBUtil.getEntityManagerFactory().createEntityManager(); public static String...
//注意需要一个变量记住上一个访问过的元素的值 class Solution { public int removeDuplicates(int[] nums) { int size = nums.length; if(size == 0){ return 0; } int index = 0; int lastVal = -1; for(int i = 0; i < size; i++){ if(i == 0 || nums[i] != lastVal){...
package com.psl.flashnotes.Idao; import com.psl.flashnotes.bean.NotesViews; public interface INotesViewsDAO { public NotesViews retrieveUser(int userId,int noteId); //public void updateView(int userId); }
package com.scnuweb.action; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframew...