How do i add a char to an arraylist...
i know you can't directly add premittive data types to arratlists.
but how do u convert?
i did something like
myArrayList.add(new Integer(myAge));and it works fine...
i tried to
myArrayList.add(new Character(faveAlphabet));but this does not work...
Please advise...
the whole code is here...
import java.awt.*;
import java.util.*;
public class DemoFSS {
private Point forState1 = new Point(126,184);
private Point forState2 = new Point(380,117);
private Point forState3 = new Point(709,213);
private Point forState4 = new Point(395,428);
private Point label1 = new Point(253,160);
private Point label2 = new Point(545,165);
private Point label3 = new Point(552,321);
private Point label4 = new Point(261,306);
private char lab1 = "A";
private char lab2 = "B";
private char lab3 = "C";
private char lab4 = "D";
private ArrayList demoStates = new ArrayList();
private ArrayList demoLines = new ArrayList();
private ArrayList demoLabels = new ArrayList();
public DemoFSS() {
demoStates.add(forState1);
demoStates.add(forState2);
demoStates.add(forState3);
demoStates.add(forState4);
demoLines.add(forState1);
demoLines.add(forState2);
demoLines.add(new Integer(0));
demoLines.add(forState2);
demoLines.add(forState3);
demoLines.add(new Integer(0));
demoLines.add(forState3);
demoLines.add(forState4);
demoLines.add(new Integer(0));
demoLines.add(forState4);
demoLines.add(forState1);
demoLines.add(new Integer(1));
demoLabels.add(label1);
demoLabels.add(new Character(lab1));
demoLabels.add(label2);
demoLabels.add(new Character(lab2));
demoLabels.add(label3);
demoLabels.add(new Character(lab3));
demoLabels.add(label4);
demoLabels.add(new Character(lab4));
public ArrayList createStates() {
return demoStates;
public ArrayList createLines() {
return demoLines;
public ArrayList createLabels() {
return demoLabels;
}
Similar Messages
-
How can i add a new characteristic to Sap standard InfoObject?
Hi Experts,
Please anyone let me know how can I add a new characteristic or a key figure into an SAP standard InfoObject in order to add it to the standard InfoCube? The situation is I would like to add region and business unit to the characteristics of the Industrial Hygiene and Safety. After that, I would like to add them to the InfoCube called Accidents: Person Involved [0EIH_C02] that is located in the MultiProvider called Accidents: Complete View [0EIH_MC01]. Is it feasible to do this way?
I just learned the BW/BI, so please help me with this. I would really appreciate your responses.
Thanks,
-NapadolHi Napadol,
To add a attribute in a char:
1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
2) Activate the Object/Char
3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
4) Activate infocube.
5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
Regards,
Kams -
How do you add a directory to a manifest.mf file, andf in what order.
How do you add a directory to a manifest.mf file in a JAR file, andf in what order.
I know how to set a classs files and file class's & Main Class's not a problem, but how about a directory/folder.
The Directory/folder contains class's. My prog can run the class's from a Jlist, as long as I set the classpath directly by control panel user varaibles manully or by a Bat file running in the back ground.
any crazy ideas I'll excecpt and give a bloody good try.
I tried.
Class-Path: C:/bb/
Class-Path:C/bb
Class-Payh:bb
Class-Path:bb/
Class-Path: \bb\
Class-Path:bb\ Not to sure if I've tried this, ttto many beers cans drunk at this stage.
Friday night is beer night.
WHAT am I doing wrong, or doing that can't be done with a JManifestMF file.
Maybe Wrapper, and not the type that turn decks, and look at very low cameras while singing.If I open Font Book, and choose named font, I can see a list of symbols, e.g.
If I open Character Viewer, and switch to Pictographs, I can see something like this
so I assume that named font includes chars in the category Pictographs, which you can use at ease, I hope.
If you need them frequently, you may create your custom keyboard layout, if you wish this, come back with what you wish.
Screenshots are in Lion, but the procedure is the same, I hope. -
How can I add a new attribute (characteristic) in intrastat
Hi all,
my friends from Autria have a problem with their intrastat message and that makes it my problem. Austrian statistic wants to know the amount of goods imported, not only the value. I tried to add an attribute using transaction VEB1, but there is no attribute in the list that gives me the amount. Does anyone know how to handle that?
ChristianHi Napadol,
To add a attribute in a char:
1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
2) Activate the Object/Char
3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
4) Activate infocube.
5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
Regards,
Kams -
How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.
You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button.
https://forums.adobe.com/thread/304974?start=0&tstart=0
Sounds like it would work but I haven't actually tried it.
Good luck~! -
How do i add type kit fonts to muse web site
how do I +add type kit fonts to muse website
Hi.
Check this video, might be helpful
Let me know if you have any questions -
How can I add more than one same spry menu (eg. collapsible menu) with in different styles (font size, color, background, etc) on current page?
Hi Nancy,
This screenshot was only for imagination. A part of the code (not all) is below. In the code there are some background images but they are not seem in live mode.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/my_site.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css"/>
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
<style>
#CollapsiblePanel1 .CollapsiblePanelOpen .CollapsiblePanelTab {
background-color: #003366;
font-size: 18px;
line-height: 52px;
color: #FFF;
#CollapsiblePanel1 .CollapsiblePanelTabHover .CollapsiblePanelTab {
background-color: #003366;
color: #FFF;
text-shadow: 1px 1px #000;
font-weight: bold;
line-height: 52px;
#CollapsiblePanel1 .CollapsiblePanelClosed .CollapsiblePanelTab {
background-color: #C3CFDF;
border-radius: 5px 5px 0px 0px;
color: #999
text-shadow: 1px 1px #000;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
line-height: 52px;
#CollapsiblePanel2 .CollapsiblePanelOpen .CollapsiblePanelTab {
background-image: url(images/international.jpg);
background-repeat: no-repeat;
font-size: 18px;
line-height: 52px;
color: #FFF;
#CollapsiblePanel2 .CollapsiblePanelTabHover .CollapsiblePanelTab {
background-color: #003366;
color: #FFF;
text-shadow: 1px 1px #000;
font-weight: bold;
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel2 .CollapsiblePanelClosed .CollapsiblePanelTab {
background-color: #C3CFDF;
border-radius: 5px 5px 0px 0px;
color: #999
text-shadow: 1px 1px #000;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
background-image: url(images/TR_Gray2-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel2 .CollapsiblePanelContent {
background-color: blue;
#CollapsiblePanel3 .CollapsiblePanelOpen .CollapsiblePanelTab {
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
font-size: 18px;
line-height: 52px;
color: #FFF;
#CollapsiblePanel3 .CollapsiblePanelTabHover .CollapsiblePanelTab {
background-color: #003366;
color: #FFF;
text-shadow: 1px 1px #000;
font-weight: bold;
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel3 .CollapsiblePanelClosed .CollapsiblePanelTab {
background-color: #C3CFDF;
border-radius: 5px 5px 0px 0px;
color: #999
text-shadow: 1px 1px #000;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
background-image: url(images/TR_Gray2-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel4 .CollapsiblePanelOpen .CollapsiblePanelTab {
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
font-size: 18px;
line-height: 52px;
color: #FFF;
#CollapsiblePanel4 .CollapsiblePanelTabHover .CollapsiblePanelTab {
background-color: #003366;
color: #FFF;
text-shadow: 1px 1px #000;
font-weight: bold;
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel4 .CollapsiblePanelClosed .CollapsiblePanelTab {
background-color: #C3CFDF;
border-radius: 5px 5px 0px 0px;
color: #999
text-shadow: 1px 1px #000;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
background-image: url(images/TR_Gray2-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel5 .CollapsiblePanelOpen .CollapsiblePanelTab {
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
font-size: 18px;
line-height: 52px;
color: #FFF;
#CollapsiblePanel5 .CollapsiblePanelTabHover .CollapsiblePanelTab {
background-color: #003366;
color: #FFF;
text-shadow: 1px 1px #000;
font-weight: bold;
background-image: url(images/TR_Col-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
#CollapsiblePanel5 .CollapsiblePanelClosed .CollapsiblePanelTab {
background-color: #C3CFDF;
border-radius: 5px 5px 0px 0px;
color: #999
text-shadow: 1px 1px #000;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
background-image: url(images/TR_Gray2-WEB.png);
background-repeat: no-repeat;
line-height: 52px;
</style> -
How do I add multiple apple id's to one account
How do I add multiple Apple id's to one account for billing and Icloud use?
You don't. You can't combine Apple IDs.
-
How can I add an e-mail address to my existing icloud account? I curently only use one of the three.
Each iCloud account only has a single iCloud account. If you want, you can add up to 3 alias addresses that will receive email in the same iCloud inbox, as explained here: http://support.apple.com/kb/PH2622.
-
How can I add amazon to Apple TV?
I am a new Apple TV user. So far I am impressed and like it a lot. However I would like to use the Amazon Prime and I have yet to find it. How can I add it to my Apple TV?
You cannot add apps to Apple TV. If you have an IOS device you can AirPlay to stream using the app from there
-
How do I add a contact / recipient to an SMS on iPhone 5s? It's easy on Android, but I've not sussed it on the iPhone - can't create a group etc. Tried to create a group on Mac, but it either doesn't exist or won't sync to the phone with usb, nor will other contact details created on Mac. I'd rather not use the cloud. I'm sure contacts used to sync to my old iPod touch in Snow Leopard.
Is it not more logical to have the phone as the main source of this sort of data? We're more likely to update on a device we carry all the time surely?
Please advise. Thank youHey Cornish wrinkly,
It sounds like you want to create a group message. You can read about group messaging on the iPhone here:
iOS: Understanding group messaging
http://support.apple.com/kb/HT5760
Welcome to Apple Support Communities!
Regards,
Delgadoh -
I have a confirmation number from American Airlines for a flight with my family all under my name and for some reason I cannot add all of our tickets to Passbook. To clarify, I went to the American Airlines app and put in the confirmation number along with my name which pulled up my boarding pass only. Although I was able to add this boarding pass to Passbook, I was not able to add any of the other boarding passes for my children to Passbook that should have also been under the flight reservation. In fact I couldn't even see them in the American Airlines app. I tried to use their names and the same confirmation number but nothing happened, and nothing else seems to be working. How can I add all of these boarding passes to my Passbook?
Fair enough.
I started doing this before unlimited data and emails on phones was a common commodity, on my Samsung Blackjack.
I then continued it due to its convenience. My only counter argument is this:
Even when emails are set to immediately push, I am always notified earlier by this forwarding message (sometimes by several minutes/hours due to the fact that it is not dependent on my being connected to 4G or wifi to receive it.
Also, to contradict snozdop's point that both methods use data and battery, I say this - when I use the forwarding method, the information comes in a pure text format and therefore uses considerably less information than an HTML and CSS rich email, with embedded images and such -also, unlimited text messages aids curve costs.
I will, however, give this method a go. In any case, a solution to my original question would still be greatly appreciated.
Thanks guys. -
How do I add multiple contacts to a group?
How do I add multiple contacts to a group on my Ipad?
See if this thread helps.
https://discussions.apple.com/thread/4114588
Matt -
How do i add a company logo to my email signature on my mac book pro
how do i add a company logo to my email signature on my mac book pro
I would like to know how to do this as well. All I'm able to do is add the link, but not the button. My colleague has done this on his Outlook on his HP. I'm not sure why this is so difficult!
-
How do I add a printer connected to another iMac on the network to my printer list?
How do I add an Epson printer connected to an iMac on the network to the printer list on my MacBook Pro? I cannot get it to show up in the list for printers to add.
That only works if the printer is itself a network printer. You can't do it if it is directly connected to another computer on the network unless it is configured to be a Shared Printer on the other computer.
Maybe you are looking for
-
.ToShortDateString() format has changed on new server
I'm managing an asp.net 4.0 website with a backend written in c#. After changing from a 2008 to a 2012 windows server (now on azure) the date time format has changed from Swedish to English. I have tried to change the language setting on the server b
-
Adding Editor Permissions to a AD Security Group
Hi, Requirement: Add an AD Security Group with "Editor" rights on all MeetingRoom objects in the Exchange 2010 organization using Powershell. MailEnabledDistribution Group alias = abcd1 The PS command I am running is :- $all=Get-Mailbox -RecipientTyp
-
Birthdays did not appear in iCal after update from Contacts
I thought iCal is supposed to automatically import birthdays from "contacts"? I went to contacts and selected "birthdays" to be displayed. Then typed in the bday info, saved the cards, and went to look at my ical. nothing happend. did i miss some vit
-
Where is the previous version of javafx related forum?
Hi All, Before the preview release of JavaFX, i found one example related with chart. I could not find the link now in the new JavaFX forum. can any one help me to find the URL? Thanks, Thamizharasu S
-
Safari freezes when I try to delete a particular bookmark
I have a an unknow bookmark and every time I try to delete it, Safari freezes and I have to force quit. Any solution?