我的意思是使用和IDE当然.
Java是否带有像控件一样的工具箱,它具有拖放控件,你可以移动等等?
此外,如果我使用Java创建应用程序,它是否可以在任何具有Java运行时环境的计算机上运行?由于这个单一特征,我不介意学习一些Java.:)
假设我构建了一个简单的计算器,它将在Linux/Mac/Windows上运行吗?
我正在制作一个项目,废弃有关电影的信息并返回各种好东西.这将是其他开发人员将在他们的项目中使用的.dll.
例如,如果他们想要将pictureBox图像设置为电影海报,那么处理我的图书馆返回图像的最佳方法是什么?
//Set the image to The Matrix poster.
pictureBox1.Image = MyLibrary.GetPoster("The Matrix");
Run Code Online (Sandbox Code Playgroud)
我应该退回图片吗?Byte []数组?
例如,拿我的Actor类:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace FreeIMDB
{
class Actor
{
public string Name { get; set; }
public Image Portrait { get; set; }
public DateTime DateOfBirth { get; set; }
public List<string> ActingRoles { get; set; }
public List<string> WritingRoles { get; set; }
public List<string> ProducingRoles { get; set; }
public List<string> DirectingRoles { get; set; }
}
}
Run Code Online (Sandbox Code Playgroud)
此类仅用于将信息填充到其中,并允许其他开发人员获取其值.
正式称这些类型的课程是什么?什么是正确的命名法?
例如,假设我想查看我的数据库中是否存在用户:
Select * from Users where inputID = Users.ID
Run Code Online (Sandbox Code Playgroud)
然后,如果该结果带来> 0项,那么用户存在,对吗?
如何使用纯Linq-to-SQL类做这样的事情?
public bool IsValid()
{
get { return (GetRuleViolations().Count() == 0); }
}
Run Code Online (Sandbox Code Playgroud)
我收到这个错误:
; 预期
怎么了?
我正在学习本教程:http://nerddinnerbook.s3.amazonaws.com/Part3.htm 我不确定他们为什么使用get.
我在NetBeans中创建了一个仅用于字符串操作的类.我应该使用什么进口产品.
我甚至无法声明一个字符串变量,因为它没有为我自动生成导入.:P由于我是新手,我不知道Java世界中的必要性是什么.
这不起作用:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
import java.text;
/**
*
* @author Sergio
*/
public class WordManipulations
{
public string[] ReturnAllVowels()
{
return string[] x;
}
}
Run Code Online (Sandbox Code Playgroud)
它说那个字符串;找不到符号;