码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
动态代理 ---jdk
先上一个标准用法 接口 public interface Dog { void run(); int eatCount(); boolean eta(String name); } 实现 public class GunDog implements Dog { @Override public vo ...
分类:其他好文   时间:2021-03-15 11:09:49    阅读次数:0
抽象类和接口
抽象类 //当定义一个抽象方法的时候,它的类也必须是抽象类 public abstract class Person { //这就是抽象方法,它并没有方法体 public abstract void text(); } //因为它并不需要方法体,当Person实例化后,系统不会为抽象方法分配内存空间 ...
分类:其他好文   时间:2021-03-15 11:06:38    阅读次数:0
数组的使用
数组的使用 For-Each 循环 普通的for循环 数组作方法入参 数组做返回值 package com.liuqi.array; public class ArrayDemo04 { public static void main(String[] args) { int[] arrays = ...
分类:编程语言   时间:2021-03-15 11:04:39    阅读次数:0
2021-3-13 xml的增删改查
public void XmlAdd(string filename, List<People> pList) { try { List<People> peoples = XmlDeSerializer(filename); foreach (var item in pList) { People ...
分类:其他好文   时间:2021-03-15 10:59:05    阅读次数:0
一个字符串由a-z和逗号.组成,要求反转字符串,以逗号.分割。不能使用split
public class Test { public static void main(String[] arg0){ String s = "asd....dfa...d.fee.c"; System.out.println(new Test().getReverseStr(s)); } publ ...
分类:其他好文   时间:2021-03-15 10:53:11    阅读次数:0
C# WPF:快把文件从桌面拖进我的窗体来!
首发公众号:Dotnet9 作者:沙漠之尽头的狼 日期:202-11-27 一、本文开始之前 上传文件时,一般是提供一个上传按钮,点击上传,弹出文件(或者目录选择对话框),选择文件(或者目录)后,从对话框对象中取得文件路径后,再进行上传操作。 选择对话框代码如下: OpenFileDialog op ...
分类:Windows程序   时间:2021-03-15 10:46:45    阅读次数:0
Java数据类型转换
public class Demo04 { public static void main(String[] args) { //低 >高 //byte、short、char->int->long->float->double int i = 128; //强制转换,(类型)变量名 高-->低 by ...
分类:编程语言   时间:2021-03-11 19:31:35    阅读次数:0
PAT 2020年秋季 7-3 Left-View of Binary Tree (25 分)
The left-view of a binary tree is a list of nodes obtained by looking at the tree from left hand side and from top down. For example, given a tree sho ...
分类:其他好文   时间:2021-03-11 18:26:16    阅读次数:0
乱写的
2020/3/10 程设 函数变量的定义。如有一个传入两个 int 传出一个 int 的 min 函数,可以这样来做:int (*Min)(int, int) = min,达到与原函数一样的效果。 qsort 函数,依次传入首地址,元素个数,类型所占字节数和比较函数,其中比较函数传入类型为 void ...
分类:其他好文   时间:2021-03-11 14:48:08    阅读次数:0
putchar与getchar
#include <stdio.h>#include <stdlib.h>void myputs(char*p) //此处的*号是标志,标志这P是一个指针{ if(p==NULL){ printf("需要输出的字符串为空,请重新输入"); }else{ while(1) {putchar(*p++) ...
分类:其他好文   时间:2021-03-11 14:18:40    阅读次数:0
62627条   上一页 1 ... 60 61 62 63 64 ... 6263 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!