大神!!!求解

plsql developer一直在处于加载中是出了什么问题 我卸载又重装很多次了,而且把每次卸载也把安装在c盘的plsql developer文件也删除了 就是一直在加载 我不知道是我oracle安装过程出错还是怎么滴 求大神们帮我解决解决呐 


阅读更多

大神求解

03-06

/**rn*文件名为Date2_ex.classrn*/rnpackage java.Data;rnrn class Date2rn /**rn * 私有的成员变量rn */rn private int year; rn private int month;rn private int day;rn public Date2(int y,int m,int d)rn set(y,m,d);rn rn public Date2()rn this(2006,1,1);rn rn rn /**rn * 拷贝构造方法,由已存在对象创建对象,重载rn */rn public Date2(Date2 aday)rn this(aday.day,aday.month,aday.year);rn rn public void set(int y, int m, int d) rn // TODO Auto-generated method stubrn this.year=y;rn this.month=((m>=1)&(m<=12))?m:1;rn this.day=((d>=1)&(d<=31))?d:1;rn rn public void set(Date2 aday)rn set(aday.year,aday.month,aday.day);rn rn public int getYear()rn return year;rn rn public int getMonth()rn return month;rn rn public int getDay()rn return day;rn rn public boolean equals(Date2 aday2)rn return this==aday2 || this.year==aday2.year && this.month==aday2.month && this.day==aday2.day;rn rn public void tomorrow()rn this.day++;rn rn public Date2 daysAftrer(int n)rn return new Date2(this.year,this.month,this.day); //返回新创建的对象,没有改变当前对象的值rn rn public boolean isLeapYear()rn return (year%400==0 || (year%100)!=0) && (year%4==0);rn rn public String toString()rn return this.year+"-"+this.month+"-"+this.day;rn rn public void print()rn System.out.println("data is"+this.toString());rn rnrnrnpublic class Date2_ex rnrn public static void main(String[] args) rn // TODO Auto-generated method stubrn Date2 aday1=new Date2();rn Date2 aday2=new Date2(2006,2,28);rn Date2 aday3=new Date2(aday2);rn aday3.set(2007,12,31);rn aday1.print();rn aday2.print();rn aday3.print();rn rn Date2 aday4=aday1.daysAftrer(1);rn aday4.print();rn aday1.tomorrow();rn aday1.print();rn System.out.println("aday4.equals(aday1)"+aday4.equals(aday1)); //比较两个对象的值rn rn rnrnrn程序有异常:rnException in thread "main" java.lang.SecurityException: Prohibited package name: java.Datarn at java.lang.ClassLoader.preDefineClass(Unknown Source)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$100(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)rnrn

大神 求解

12-11

[code=csharp]using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace HuoWu1rnrn class HuoWeirn rn public HuoPin[] HP;rn public HuoPin[] wz;rn //显示货物rn public void show() rn rn Console.WriteLine("库存货品清单列表");rn foreach (HuoPin item in HP)rn rn Console.WriteLine("货品名称:0",item.Name);rn rn rn //显示货品菜单rn public void showCD() rn rn rn Console.WriteLine("-----------------欢迎使用库存管理系统------------------");rn Console.WriteLine("1:根据货品名称获取货品位子2:取得客户满意度最高的货品");rn Console.WriteLine("-------------------------------------------------------");rn bool f = false;rn dorn rn Console.WriteLine("请选择");rn int ze = Convert.ToInt32(Console.ReadLine());rn if (ze>3||ze<0)rn rn Console.WriteLine("菜单选择错误,请重新输入选项");rn f = true;rn rn else if (ze==1)rn rn zhao();rn f = true;rn rn else if (ze == 2)rn rn f = true;rn rn while (f);rn rn //输入要找的货品名称rn public string zhao() rn rn Console.WriteLine("请输入货品的名称“);rn string h = Console.ReadLine();rn foreach (HuoPin g in HP) //问题出在这里进不去 求解rn rnrn if (g.Equals(h))rn rn Console.WriteLine(wd());rn break;rn rn rn return h;rn rn //查找位子rn public string wd()rn rn string wdz = null;rn foreach (HuoPin hp in HP)rn rn if (zhao().Equals("热水器"))rn rn wdz = "第一仓库第三排";rn break;rn rn else if (zhao().Equals("花瓶"))rn rn wdz = "第一仓库第二排";rn break;rn rn else if (zhao().Equals("水杯"))rn rn wdz = "第一仓库第一排";rn break;rn rn rn return wdz;rn rn rnrnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace HuoWu1rnrn class Programrn rn static void Main(string[] args)rn rn HuoWei hw = new HuoWei();rn hw.HP = new HuoPin[] rn new HuoPinName="热水器",rn new HuoPinName="花瓶",rn new HuoPinName="水杯"rn ;rn hw.wz = new HuoPin[] rn new HuoPinWeizi="第一仓库第三排",rn new HuoPinWeizi="第一仓库第二排",rn new HuoPinWeizi="第一仓库第一排"rn ;rn hw.show();rn hw.showCD();rn Console.ReadKey();rn rn rnrnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace WZhang1rnrn class KuCrn rn /// rn /// 货物rn /// rn public HuoP[] hp;rn rn /// rn /// 显示货物rn /// rn public void showqing()rn rn Console.WriteLine("库存货品清单列表");rn foreach (HuoP item in hp)rn rn Console.WriteLine("货物名称0",item.Name);rn rn rn /// rn /// 显示库存管理系统菜单rn /// rn public void showcai()rn rn bool gf = false;rn dorn rn Console.WriteLine("--------------------欢迎使用库存管理系统--------------------");rn Console.WriteLine("1:根据获品名称获取货品位子2:取得酷虎满意度最高的货品3退出");rn Console.WriteLine("请选择");rn int xuan = Convert.ToInt32(Console.ReadLine());rn string houwu = string.Empty;rn switch (xuan)rn rn case 1:rn houwu=kw();//输入的货品 rn //获取的货品huowu(houwu);rnrn Console.WriteLine("0在1", houwu, wz(houwu));rn gf = true;rn rn break;rn case 2:rnrn rnrn gf = true;rn break;rn case 3:rn Console.WriteLine("谢谢使用");rn gf = false;rn break;rn default:rn break;rn rn while (gf);rn rn rn rn /// rn /// 输入需要的货品rn /// rn /// rn public string kw() rn rn Console.WriteLine("请输入货品名称");rn string hou = Console.ReadLine();rn foreach (HuoP item in hp)rn rn if (item.Name.Equals(hou))rn rn Console.WriteLine("已找到0",item.Name);rn break;rn rn elsern rn Console.WriteLine("没有找到此商品");rn break;rn rn rn return hou;rn rn rn rn rn /// rn /// 获取物品rn /// rn /// rn public string huowu(string huowu)rn rn rn foreach (HuoP item in hp)rn rn if (item.Name.Equals(huowu))rn rn huowu = item.Name;rn break;rn rn rn return huowu;rn rnrn rn rn rn /// rn /// 获取位子rn /// rn /// rn public string wz(string wp) rn rn string weizi=string.Empty;rn foreach (HuoP item in hp)rn rn if (item.Name.Equals(wp))rn rn weizi = item.Wei;rn break;rn rn rn return weizi;rn rnrnrn public void showfd()rn rn foreach (HuoP item in hp)rn rnrn if (huowu("fd").Equals(item.Name))rn rn string xian = string.Format("01,62,123,20:c2", item.Name, item.Wei, item.Man, item.Jia);rn Console.WriteLine(xian);rn break;rn rn rn rn rn[/code]

没有更多推荐了,返回首页