我现在正在学mvc结构.学完这个以后,我再准备学EJB.及相关应用服务器有熟悉.在几个以后准备找个基于java开发软件公司工作.这就是目前的目标.再过一二年以后.我会向更高的目标挑战的.
5 thoughts on “我的目标.”
Comments are closed.
正在关注 Linux 、开源、IT 的个人博客。
我现在正在学mvc结构.学完这个以后,我再准备学EJB.及相关应用服务器有熟悉.在几个以后准备找个基于java开发软件公司工作.这就是目前的目标.再过一二年以后.我会向更高的目标挑战的.
Comments are closed.
这个是我COPY别人.不过我做了一些修改.
package testtest;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.text.*;
import java.lang.*;
class Cheng
{
private long[] a;
private long c;
private int m = 0;
private int n,d;
private int y = 0;
private DecimalFormat myFroamt;
public Cheng()
{
DecimalFormat myFormatter = new DecimalFormat("0000");
a = new long[30000];
a[0] = 1;
}
public void result()
{
String s;
DecimalFormat myFormatter = new DecimalFormat("0000");
s = JOptionPane.showInputDialog(null,"??入一?整?");
n = Integer.valueOf(s).intValue();
for(int i = 1; i<= n; i++)
{
c = 0;
for( int j = y; j<=m; j++)
{
a[j] = a[j]*i+c;
c = a[j]/10000;
if(a[j]%10000 ==0 && j ==y)
{
y++;
a[j] = 0;
continue;
}
a[j] = a[j]%10000;
}
if(c>0)
{
m++;
a[m] = c;
}
}
System.out.print(a[m]);
System.out.println("a[m]");
for(int p = m-1;p>=y; p--)
{
String output = myFormatter.format(a[p]);
if(p%30==1)
{
System.out.println();
}
System.out.print(output);
}
for(int i = 0; i<y;i++)
{
if(i%30 ==1)
{
System.out.println();
}
System.out.println("0000");
}
System.out.println();
if(a[m] /1000 >0)
d = 4;
else if(a[m]/100 >0)
d=3;
else if(a[m]/10 > 0)
d=2;
else
d=1;
int w =m * 4 + d;
System.out.println(n+"!?"+w+"位");
}
public static void main(String [] args)
{
Cheng ar = new Cheng();
ar.result();
System.exit(0);
}
}
衷心祝您心想事成!
如题.
回复:一个二维数组,除去其中的n列,算法该怎么写
靠天靠地不如靠自己。本来想这么多专家论坛,没想到没一个能搞定的。还是靠自己写了一个。
写完后,感觉超好用,可以提出任意的n列。
class MyString{
//power by tianhb
//tianhb@gsta.com
public static void main(String args[]) {
System.out.println("Starting Chart...");
String myString [][] = new String[100][100];
for(int i =0 ; i<myString.length;i++)
for(int j=0;j<myString[i].length;j++)
myString[i][j] = ""+j ;
int [] ab = {5,1,0,55,88,99};
myString = outString(myString,ab);
for(int j=0;j<myString[0].length;j++){
for(int i =0 ; i<myString.length;i++)
System.out.print(myString[i][j]) ;
System.out.println();
}
}
//剔除myTable中的int []中的列
public static String[][] outString(String[][] myTable,int[] myColumn){
int length = myColumn.length;
int rows = myTable.length;
int columns = myTable[0].length;
String[][] newTable = new String[rows][columns-length];
int a = 0;
boolean here = true;
for(int j=0;j<columns;j++){
for(int q =0;q<length;q++){
System.out.print("#####"+myColumn[q]);
if(j==myColumn[q])
here = false;
}
if(here == true){
for(int i=0;i<rows;i++){
newTable[i][a]=myTable[i][j];
}
a++;
}
here = true;
//System.out.println(j);
}
return newTable;
}
}
怎么提交不上去