User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 397,722 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,596 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 5579 | Replies: 2
Join Date: Nov 2004
Posts: 2
Reputation: kai13 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kai13 kai13 is offline Offline
Newbie Poster

Trying to create a method to convert string letters into a two dimensional array

  #1  
Nov 23rd, 2004
I'm currently stuck in my program.

I'm supposed to create a new method that inputs a message string and takes each letter and converts it into a two dimensional array of 1's and 0's. For example the letter 'H' would be

10001
10001
11111
10001
10001

My thoughts were to create a for loop and use the .charAt() method to isolate each char in the string. But from there I'm not quite sure where to go to take that char and convert it into the two dimensional array. Any suggestions?
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 2:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC