Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

newbie_

@newbie_
About
Posts
9
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Print an arrays by coulms
    N newbie_

    thank you Sebastian it worked with me so good i appreciate you help. the rest of you guys , i am sorry that i am not genius as you, but i don't think there is problem to get some help with other and i guess that's the whole point of this form i know i am not professional and i didn't say that i am but i am doing my best in learning

    modified on Friday, January 16, 2009 6:18 AM

    C# data-structures

  • Print an arrays by coulms
    N newbie_

    I need to write an arrays by coulms i have the following array

    a1={1,2,3,4,5,6}
    a2={7,8,9,10,11}
    .
    .
    .
    .
    an={10,11,12,13,14,15}

    and i want to print it as

    1 7 ... 10
    2 8 ... 11
    3 9 ... 12
    4 10 ... 13
    5 11 ... 14
    6 12 ... 15

    C# data-structures

  • Best Method to Write ArrayLists
    N newbie_

    you have to loop through the array list and get each array and print it through loop two for example

    private void printArryList(ArrayList<string[]>someList)
    {
    int counter=0;
    for (int i = 0; i < someList.size(); i++) {
    System.out.print("["+(++counter)+"]");
    for (int j = 0; j < someList.get(i).length; j++) {
    System.out.print(someList.get(i)[j]+" ");
    }
    System.out.println();
    }
    }

    Java performance question

  • read coulm from file and store it to array
    N newbie_

    Hello guys i am new to java and i have some problem that going to make my head explode i am stuck on this thing for a week now i need to read data file by column not by lines for example i have the following data file

    6, 148, 72, 35, 0, 336, 0627, 50, 2
    8, 183, 64, 0, 0, 233, 0672, 32, 2
    1, 85, 66, 29
    1, 89, 66, 23, 94, 281, 0167, 21, 1
    0, 137, 40, 35, 168, 431, 2288, 33, 2, 10, 9, 125
    5, 116, 74, 0, 0, 256, 0201, 30, 1

    i need to read it coulmn by coulmn and store it to arrays for exaample the first array would be {6,8,1,1,0,5} and so on all what i have done is read it line by line and thats not working for me this what i've done so far

    public class VariableTransformation
    {

    private String FileName = "";
    private FileReader FileReader;	
    private BufferedReader buffFile;
    private ArrayList<string\[\]> attrDomainList = new ArrayList<string\[\]>();	
    private String\[\] item=null;
    
    
    	
    
    
    public static void main(String\[\] args) 
    {
    	VariableTransformation tds = new VariableTransformation();
    	Scanner input=new Scanner(System.in);
    	System.out.println("===============================================");
    	System.out.print("Enter the file name>> ");
    	String filename;
    	filename=input.next();
    	tds.fileLoad(filename);
    	System.out.println("===============================================");
    		
    }
    
    public void fileLoad(String fileName)
    {
    	String line = "";
    	String\[\] attrDomain;
    	FileName = fileName;
    		
    	
    	System.out.println("> Reading File..");
    	try {
    		int lineCount=0;
    		int size=0;
    		FileReader = new FileReader(FileName);
    		buffFile = new BufferedReader(FileReader);
    
    		try {
    											
    			while((line = buffFile.readLine()) != null)
    			{
    					item = line.split(",");
    					size=item.length;
    					attrDomain=new String\[size\];
    					for (int i = 0; i < item.length; i++) {
    						attrDomain\[i\]=item\[i\];							
    					}						
    					attrDomainList.add(attrDomain);
    					lineCount++;
    			}
    			
    			printData(attrDomainList);
    			System.out.println("> Finish File Reading.");
    			System.out.println("Number of Lines>> "+lineCount);
    			System.out.println("===============================================");
    			
    		} 
    		catch (IOException e) {
    			System.out.println(e.getStackTrace().toString());
    			System.out.println("# Error while reading file .");
    		}
    		finally
    		{				
    			try {buffFile.close();} catch (IOException e) {e.printStackTrace();}
    			try {FileR
    
    Java help java data-structures tutorial

  • Release My Application
    N newbie_

    Thankx alot !!! i thought taht there is something else:)

    C# help question announcement

  • Release My Application
    N newbie_

    there is no .Net in the other sytem ,, the error messeage is about the .net framewrok: The setup require the .Net framework 2.0.50727 pleae install the .net ..........etc

    C# help question announcement

  • Release My Application
    N newbie_

    I am tryin to release my application from visul studio but i dont know if i am doing it correct ,, if i try to run my application in other systems it doesnt work but it works ok in my system ,, can any one help me ?

    C# help question announcement

  • Device Application
    N newbie_

    I want to draw arc in a deviceApplication project (Pocket pc 2003) but there is no DrawArc method!!! any ideas.

    Mobile

  • Device Application
    N newbie_

    I want to draw arc in a deviceApplication project (Pocket pc 2003) but there is no DrawArc method!!! any ideas.

    C#
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups