java: Apache NetBeans IDE 19
添加.jar文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | /** * encoding: utf-8 * 版权所有 2023 涂聚文有限公司 * 许可信息查看: * 描述: * # Author : geovindu,Geovin Du 涂聚文. * # IDE : Apache NetBeans IDE 19 windows 10 Java 17 * # Datetime : 2023 - 2023/11/16 - 12:29 * # User : geovindu * # Product : Apache NetBeans * # Project : javademo * # File : User.java 类 * # explain : 学习 **/ package Model; import java.util.Objects; /** *用户 * @author geovindu */ public class User { /** *姓名 */ private String name; /** *职业 */ private String occupation; /** *兄弟姐妹有几人 */ private int siblings; /** *身高 */ private double height; /** *结婚否 */ private boolean married; /** * * @param name * @param occupation * @param siblings * @param height * @param married */ public User(String name, String occupation, int siblings, double height, boolean married) { this .name = name; this .occupation = occupation; this .siblings = siblings; this .height = height; this .married = married; } /** *获取姓名 * @return */ public String getName() { return name; } /** *设置姓名 * @param name */ public void setName(String name) { this .name = name; } /** * * @return */ public String getOccupation() { return occupation; } /** * * @param occupation */ public void setOccupation(String occupation) { this .occupation = occupation; } /** * * @return */ public int getSiblings() { return siblings; } /** * * @param siblings */ public void setSiblings( int siblings) { this .siblings = siblings; } /** * * @return */ public double getHeight() { return height; } /** * * @param height */ public void setHeight( double height) { this .height = height; } /** * * @return */ public boolean isMarried() { return married; } /** * * @param married */ public void setMarried( boolean married) { this .married = married; } /** * * @param o * @return */ @Override public boolean equals(Object o) { if ( this == o) return true ; if (o == null || getClass() != o.getClass()) return false ; User user = (User) o; return siblings == user.siblings && Double.compare(user.height, height) == 0 && married == user.married && Objects.equals(name, user.name) && Objects.equals(occupation, user.occupation); } /** * * @return */ @Override public int hashCode() { return Objects.hash(name, occupation, siblings, height, married); } /** * * @return */ @Override public String toString() { final StringBuilder sb = new StringBuilder( "User{" ); sb.append( "name='" ).append(name).append('\ '' ); sb.append( ", occupation='" ).append(occupation).append('\ '' ); sb.append( ", siblings=" ).append(siblings); sb.append( ", height=" ).append(height); sb.append( ", married=" ).append(married); sb.append( '}' ); return sb.toString(); } } |
project.xml:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | <?xml version= "1.0" encoding= "UTF-8" ?> <project xmlns= "http://www.netbeans.org/ns/project/1" > <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns= "http://www.netbeans.org/ns/j2se-project/3" > <name>JavaDemo</name> <source-roots> <root id= "src.dir" /> </source-roots> <test-roots> <root id= "test.src.dir" /> </test-roots> </data> <libraries xmlns= "http://www.netbeans.org/ns/ant-project-libraries/1" > <definitions> <!-- https: //mvnrepository.com/artifact/jfree/jfreechart --> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version> 1.0 . 1 </version> </dependency> <!-- https: //mvnrepository.com/artifact/jfree/jfreechart --> <dependency> <groupId>jfree</groupId> <artifactId>jfreechart</artifactId> <version> 1.0 . 0 </version> </dependency> <!-- https: //mvnrepository.com/artifact/jfree/jcommon --> <dependency> <groupId>jfree</groupId> <artifactId>jcommon</artifactId> <version> 1.0 . 0 </version> </dependency> <!-- https: //mvnrepository.com/artifact/com.darwinsys/darwinsys-api --> <dependency> <groupId>com.darwinsys</groupId> <artifactId>darwinsys-api</artifactId> <version> 1.7 . 6 </version> </dependency> <!-- https: //mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version> 2.16 . 0 </version> </dependency> <!-- https: //mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version> 2.16 . 0 </version> </dependency> <!-- https: //mvnrepository.com/artifact/org.json/json --> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version> 20231013 </version> </dependency> <!-- https: //mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-csv --> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-csv</artifactId> <version> 2.16 . 0 </version> </dependency> <!-- https: //mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version> 2.16 . 0 </version> </dependency> </definitions> </libraries> </configuration> </project> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /** * encoding: utf-8 * 版权所有 2023 涂聚文有限公司 * 许可信息查看: * * 描述: stringtree.org * json.org * jackson.org * javax.json j2ee * # Author : geovindu,Geovin Du 涂聚文. * # IDE : Apache NetBeans IDE 19 windows 10 Java 17 * # Datetime : 2023 - 2023/11/16 - 12:07 * # User : geovindu * # Product : IntelliJ IDEA * # Project : javademo * # File : main.java 类 * # explain : 学习 * */ import com.darwinsys.util.*; import Common.Env; import Common.JsonHelper; import BLL.UserBll; /** * * @author geovindu */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here System.out.println( "Hello java language world! 涂聚文!" ); UserBll bll= new UserBll(); UserBll.getUser(); UserBll.getUserArry(); UserBll.getWrite(); UserBll.getCsvtoJson(); System.out.println(Env.getEnv()); System.out.println(Env.getColor()); Env.getEnvList(); } } |
哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)生存.---Geovin Du(涂聚文)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
2022-11-17 SVG Line Between Divs (multi-point)